diff options
Diffstat (limited to 'clang/lib/Frontend/InterfaceStubFunctionsConsumer.cpp')
-rw-r--r-- | clang/lib/Frontend/InterfaceStubFunctionsConsumer.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/clang/lib/Frontend/InterfaceStubFunctionsConsumer.cpp b/clang/lib/Frontend/InterfaceStubFunctionsConsumer.cpp index b7c1e69..d58f5bb 100644 --- a/clang/lib/Frontend/InterfaceStubFunctionsConsumer.cpp +++ b/clang/lib/Frontend/InterfaceStubFunctionsConsumer.cpp @@ -290,11 +290,8 @@ public: const ASTContext &context, StringRef Format, raw_ostream &OS) -> void { OS << "--- !" << Format << "\n"; - OS << "IfsVersion: 2.0\n"; - OS << "Triple: " << T.str() << "\n"; - OS << "ObjectFileFormat: " - << "ELF" - << "\n"; // TODO: For now, just ELF. + OS << "IfsVersion: 3.0\n"; + OS << "Target: " << T.str() << "\n"; OS << "Symbols:\n"; for (const auto &E : Symbols) { const MangledSymbol &Symbol = E.second; @@ -330,7 +327,7 @@ public: OS.flush(); }; - assert(Format == "experimental-ifs-v2" && "Unexpected IFS Format."); + assert(Format == "ifs-v1" && "Unexpected IFS Format."); writeIfsV1(Instance.getTarget().getTriple(), Symbols, context, Format, *OS); } }; @@ -339,6 +336,5 @@ public: std::unique_ptr<ASTConsumer> GenerateInterfaceStubsAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) { - return std::make_unique<InterfaceStubFunctionsConsumer>( - CI, InFile, "experimental-ifs-v2"); + return std::make_unique<InterfaceStubFunctionsConsumer>(CI, InFile, "ifs-v1"); } |