aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/InterfaceStubFunctionsConsumer.cpp
diff options
context:
space:
mode:
authorHaowei Wu <haowei@google.com>2021-04-07 15:50:12 -0700
committerHaowei Wu <haowei@google.com>2021-07-19 11:23:00 -0700
commit61fa9afe4c5b014181ce41a35c84fb0f3be975db (patch)
tree5212007a0ef0d231f45b8a83f89d42ac7e013c5d /clang/lib/Frontend/InterfaceStubFunctionsConsumer.cpp
parent8b4acb067fd38ac33a63669ef46966dfee59257e (diff)
downloadllvm-61fa9afe4c5b014181ce41a35c84fb0f3be975db.zip
llvm-61fa9afe4c5b014181ce41a35c84fb0f3be975db.tar.gz
llvm-61fa9afe4c5b014181ce41a35c84fb0f3be975db.tar.bz2
[ifs] Prepare llvm-ifs for elfabi/ifs merging.
This diff changes llvm-ifs to use unified IFS file format and perform other renaming changes in preparation for the merging between elfabi/ifs. Differential Revision: https://reviews.llvm.org/D99810
Diffstat (limited to 'clang/lib/Frontend/InterfaceStubFunctionsConsumer.cpp')
-rw-r--r--clang/lib/Frontend/InterfaceStubFunctionsConsumer.cpp12
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");
}