Skip to content

Commit 0df504e

Browse files
committed
Mark function FromSymtab too if new range is found
1 parent 5600e83 commit 0df504e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/tools/llvm-profgen/ProfiledBinary.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ void ProfiledBinary::populateSymbolsFromBinary(const ObjectFile *Obj) {
840840
// Internal suffixes from Bolt
841841
".cold", ".warm",
842842
// Compiler internal
843-
".llvm.",
843+
".llvm."
844844
});
845845
StringRef FileName = Obj->getFileName();
846846
for (const SymbolRef &Symbol : Obj->symbols()) {
@@ -877,6 +877,7 @@ void ProfiledBinary::populateSymbolsFromBinary(const ObjectFile *Obj) {
877877
} else {
878878
// Store/Update Function Range from SymTab
879879
Func.Ranges.emplace_back(StartAddr, StartAddr + Size);
880+
Func.FromSymtab = true;
880881

881882
auto R = StartAddrToFuncRangeMap.emplace(StartAddr, FuncRange());
882883
FuncRange &FRange = R.first->second;

0 commit comments

Comments
 (0)