diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2017-04-06 19:39:24 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2017-04-06 19:39:24 +0000 |
commit | db4cafa6c40a4ea99643642dd5f2532bc0745eea (patch) | |
tree | e27b7fd0e231e6e67ffa90f29df878eeaf48b80c /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 8024cac19a0f02644530372528d7df39386823e1 (diff) | |
download | bcm5719-llvm-db4cafa6c40a4ea99643642dd5f2532bc0745eea.tar.gz bcm5719-llvm-db4cafa6c40a4ea99643642dd5f2532bc0745eea.zip |
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
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index be1c5521018..7b494d4b9dd 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -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] |