mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 18:24:00 +00:00
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:
@ -37,9 +37,7 @@ using namespace object;
|
||||
|
||||
IRObjectFile::IRObjectFile(MemoryBufferRef Object, std::unique_ptr<Module> Mod)
|
||||
: SymbolicFile(Binary::ID_IR, Object), M(std::move(Mod)) {
|
||||
// Setup a mangler with the DataLayout.
|
||||
const DataLayout &DL = M->getDataLayout();
|
||||
Mang.reset(new Mangler(&DL));
|
||||
Mang.reset(new Mangler());
|
||||
|
||||
const std::string &InlineAsm = M->getModuleInlineAsm();
|
||||
if (InlineAsm.empty())
|
||||
|
Reference in New Issue
Block a user