Simplify the Mangler interface now that DataLayout is mandatory.

We only need to pass in a DataLayout when mangling a raw string, not when
constructing the mangler.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240405 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola
2015-06-23 13:59:29 +00:00
parent 7c5bf4d38a
commit 9758b4ae95
19 changed files with 51 additions and 71 deletions

View File

@ -181,9 +181,9 @@ uint64_t ExecutionEngineState::RemoveMapping(StringRef Name) {
std::string ExecutionEngine::getMangledName(const GlobalValue *GV) {
MutexGuard locked(lock);
Mangler Mang(DL);
Mangler Mang;
SmallString<128> FullName;
Mang.getNameWithPrefix(FullName, GV->getName());
Mang.getNameWithPrefix(FullName, GV, false);
return FullName.str();
}