OSDN Git Service

Don't create a SymbolTable in Function when the LLVMContext discards value names...
authorMehdi Amini <mehdi.amini@apple.com>
Sat, 17 Sep 2016 06:00:02 +0000 (06:00 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Sat, 17 Sep 2016 06:00:02 +0000 (06:00 +0000)
commitd1e3c5aaec79f501de04d46e49a9ea8bcf5752fe
tree591ffe3208d8e5bd96550f0b37d0f0c8fa1446ee
parentf3f34d644387b603cb79d6e4ec6c24b4f702c606
Don't create a SymbolTable in Function when the LLVMContext discards value names (NFC)

The ValueSymbolTable is used to detect name conflict and rename
instructions automatically. This is not needed when the value
names are automatically discarded by the LLVMContext.
No functional change intended, just saving a little bit of memory.

This is a recommit of r281806 after fixing the accessor to return
a pointer instead of a reference and updating all the call-sites.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281813 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Function.h
lib/AsmParser/LLParser.cpp
lib/Bitcode/Writer/BitcodeWriter.cpp
lib/CodeGen/MIRParser/MIParser.cpp
lib/CodeGen/MIRParser/MIRParser.cpp
lib/IR/BasicBlock.cpp
lib/IR/Function.cpp
lib/IR/Value.cpp
lib/Transforms/IPO/StripSymbols.cpp
tools/bugpoint/CrashDebugger.cpp