Bitcode: Do not create FNENTRYs for aliases of functions.
There doesn't seem to be any point in doing this. Differential Revision: https://reviews.llvm.org/D31691 llvm-svn: 299694
This commit is contained in:
@@ -2924,13 +2924,6 @@ void ModuleBitcodeWriter::writeValueSymbolTable(
|
||||
NameVals.push_back(VE.getValueID(Name.getValue()));
|
||||
|
||||
Function *F = dyn_cast<Function>(Name.getValue());
|
||||
if (!F) {
|
||||
// If value is an alias, need to get the aliased base object to
|
||||
// see if it is a function.
|
||||
auto *GA = dyn_cast<GlobalAlias>(Name.getValue());
|
||||
if (GA && GA->getBaseObject())
|
||||
F = dyn_cast<Function>(GA->getBaseObject());
|
||||
}
|
||||
|
||||
// VST_CODE_ENTRY: [valueid, namechar x N]
|
||||
// VST_CODE_FNENTRY: [valueid, funcoffset, namechar x N]
|
||||
|
||||
Reference in New Issue
Block a user