diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2020-07-31 21:22:58 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2020-07-31 21:22:58 +0000 | 
| commit | 5ffd83dbcc34f10e07f6d3e968ae6365869615f4 (patch) | |
| tree | 0e9f5cf729dde39f949698fddef45a34e2bc7f44 /contrib/llvm-project/clang/lib/Frontend/InterfaceStubFunctionsConsumer.cpp | |
| parent | 1799696096df87b52968b8996d00c91e0a5de8d9 (diff) | |
| parent | cfca06d7963fa0909f90483b42a6d7d194d01e08 (diff) | |
Notes
Diffstat (limited to 'contrib/llvm-project/clang/lib/Frontend/InterfaceStubFunctionsConsumer.cpp')
| -rw-r--r-- | contrib/llvm-project/clang/lib/Frontend/InterfaceStubFunctionsConsumer.cpp | 15 | 
1 files changed, 8 insertions, 7 deletions
| diff --git a/contrib/llvm-project/clang/lib/Frontend/InterfaceStubFunctionsConsumer.cpp b/contrib/llvm-project/clang/lib/Frontend/InterfaceStubFunctionsConsumer.cpp index 7241081d6cc0..b7c1e693413b 100644 --- a/contrib/llvm-project/clang/lib/Frontend/InterfaceStubFunctionsConsumer.cpp +++ b/contrib/llvm-project/clang/lib/Frontend/InterfaceStubFunctionsConsumer.cpp @@ -8,6 +8,7 @@  #include "clang/AST/Mangle.h"  #include "clang/AST/RecursiveASTVisitor.h" +#include "clang/Basic/TargetInfo.h"  #include "clang/Frontend/CompilerInstance.h"  #include "clang/Frontend/FrontendActions.h"  #include "clang/Sema/TemplateInstCallback.h" @@ -289,7 +290,7 @@ public:                               const ASTContext &context, StringRef Format,                               raw_ostream &OS) -> void {        OS << "--- !" << Format << "\n"; -      OS << "IfsVersion: 1.0\n"; +      OS << "IfsVersion: 2.0\n";        OS << "Triple: " << T.str() << "\n";        OS << "ObjectFileFormat: "           << "ELF" @@ -298,11 +299,11 @@ public:        for (const auto &E : Symbols) {          const MangledSymbol &Symbol = E.second;          for (auto Name : Symbol.Names) { -          OS << "  \"" +          OS << "  - { Name: \""               << (Symbol.ParentName.empty() || Instance.getLangOpts().CPlusPlus                       ? ""                       : (Symbol.ParentName + ".")) -             << Name << "\" : { Type: "; +             << Name << "\", Type: ";            switch (Symbol.Type) {            default:              llvm_unreachable( @@ -329,15 +330,15 @@ public:        OS.flush();      }; -    assert(Format == "experimental-ifs-v1" && "Unexpected IFS Format."); +    assert(Format == "experimental-ifs-v2" && "Unexpected IFS Format.");      writeIfsV1(Instance.getTarget().getTriple(), Symbols, context, Format, *OS);    }  };  } // namespace  std::unique_ptr<ASTConsumer> -GenerateInterfaceIfsExpV1Action::CreateASTConsumer(CompilerInstance &CI, -                                                   StringRef InFile) { +GenerateInterfaceStubsAction::CreateASTConsumer(CompilerInstance &CI, +                                                StringRef InFile) {    return std::make_unique<InterfaceStubFunctionsConsumer>( -      CI, InFile, "experimental-ifs-v1"); +      CI, InFile, "experimental-ifs-v2");  } | 
