Don't create a SymbolTable in Function when the LLVMContext discards value names...
authorMehdi Amini <mehdi.amini@apple.com>
Sat, 17 Sep 2016 03:39:01 +0000 (03:39 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Sat, 17 Sep 2016 03:39:01 +0000 (03:39 +0000)
commitb877aeb7c80afd1ae360f4368aee4bb055ed30eb
treeca80cbd5c84bce5c578774458b7ede03ce366bbf
parent70efa2f25195ca943b2b6b46d9db3db11cfb547f
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.

llvm-svn: 281806
llvm/include/llvm/IR/Function.h
llvm/lib/IR/Function.cpp