diff options
author | Teresa Johnson <tejohnson@google.com> | 2019-01-17 16:05:04 +0000 |
---|---|---|
committer | Teresa Johnson <tejohnson@google.com> | 2019-01-17 16:05:04 +0000 |
commit | 8d86f1ba475c2e2adafd7d2e93ac26502de788ce (patch) | |
tree | d264357b4ed38b8399943cf96f0b41c9f222c643 /llvm/lib/IR/AsmWriter.cpp | |
parent | 0be9960f280a0470d08c77381dc95d47c4626362 (diff) | |
download | bcm5719-llvm-8d86f1ba475c2e2adafd7d2e93ac26502de788ce.tar.gz bcm5719-llvm-8d86f1ba475c2e2adafd7d2e93ac26502de788ce.zip |
Revert "[ThinLTO] Add summary entries for index-based WPD"
Mistaken commit of something still under review!
This reverts commit r351453.
llvm-svn: 351455
Diffstat (limited to 'llvm/lib/IR/AsmWriter.cpp')
-rw-r--r-- | llvm/lib/IR/AsmWriter.cpp | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/llvm/lib/IR/AsmWriter.cpp b/llvm/lib/IR/AsmWriter.cpp index e431deb86f4..a5dc623e1a3 100644 --- a/llvm/lib/IR/AsmWriter.cpp +++ b/llvm/lib/IR/AsmWriter.cpp @@ -1038,9 +1038,6 @@ void SlotTracker::processIndex() { TidIter != TheIndex->typeIds().end(); TidIter++) CreateTypeIdSlot(TidIter->second.first); - for (auto &TId : TheIndex->typeIdMetadataMap()) - CreateGUIDSlot(GlobalValue::getGUID(TId.first)); - ST_DEBUG("end processIndex!\n"); } @@ -2396,7 +2393,6 @@ public: void printGlobalVarSummary(const GlobalVarSummary *GS); void printFunctionSummary(const FunctionSummary *FS); void printTypeIdSummary(const TypeIdSummary &TIS); - void printTypeIdMetadataSummary(const TypeIdGVInfo &TI); void printTypeTestResolution(const TypeTestResolution &TTRes); void printArgs(const std::vector<uint64_t> &Args); void printWPDRes(const WholeProgramDevirtResolution &WPDRes); @@ -2699,15 +2695,6 @@ void AssemblyWriter::printModuleSummaryIndex() { printTypeIdSummary(TidIter->second.second); Out << ") ; guid = " << TidIter->first << "\n"; } - - // Print the TypeIdMetadataMap entries. - for (auto &TId : TheIndex->typeIdMetadataMap()) { - auto GUID = GlobalValue::getGUID(TId.first); - Out << "^" << Machine.getGUIDSlot(GUID) << " = typeidMetadata: (name: \"" - << TId.first << "\""; - printTypeIdMetadataSummary(TId.second); - Out << ") ; guid = " << GUID << "\n"; - } } static const char * @@ -2790,18 +2777,6 @@ void AssemblyWriter::printTypeIdSummary(const TypeIdSummary &TIS) { Out << ")"; } -void AssemblyWriter::printTypeIdMetadataSummary(const TypeIdGVInfo &TI) { - Out << ", summary: ("; - FieldSeparator FS; - for (auto &P : TI) { - Out << FS; - Out << "(offset: " << P.first << ", "; - Out << "^" << Machine.getGUIDSlot(P.second.getGUID()); - Out << ")"; - } - Out << ")"; -} - void AssemblyWriter::printArgs(const std::vector<uint64_t> &Args) { Out << "args: ("; FieldSeparator FS; @@ -2871,19 +2846,6 @@ void AssemblyWriter::printAliasSummary(const AliasSummary *AS) { void AssemblyWriter::printGlobalVarSummary(const GlobalVarSummary *GS) { Out << ", varFlags: (readonly: " << GS->VarFlags.ReadOnly << ")"; - - auto VTableFuncs = GS->vTableFuncs(); - if (!VTableFuncs.empty()) { - Out << ", vTableFuncs: ("; - FieldSeparator FS; - for (auto &P : VTableFuncs) { - Out << FS; - Out << "(virtFunc: ^" << Machine.getGUIDSlot(P.first.getGUID()) - << ", offset: " << P.second; - Out << ")"; - } - Out << ")"; - } } static std::string getLinkageName(GlobalValue::LinkageTypes LT) { |