mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
Stop calling getTargetTriple off of the AsmPrinter and constructing a
TargetTriple, just grab it off of the TargetMachine. NFC. llvm-svn: 283001
This commit is contained in:
parent
d40a93b0ee
commit
5b4ffc1d7a
@ -205,7 +205,7 @@ DwarfDebug::DwarfDebug(AsmPrinter *A, Module *M)
|
||||
: DebugHandlerBase(A), DebugLocs(A->OutStreamer->isVerboseAsm()),
|
||||
InfoHolder(A, "info_string", DIEValueAllocator),
|
||||
SkeletonHolder(A, "skel_string", DIEValueAllocator),
|
||||
IsDarwin(Triple(A->getTargetTriple()).isOSDarwin()),
|
||||
IsDarwin(A->TM.getTargetTriple().isOSDarwin()),
|
||||
AccelNames(DwarfAccelTable::Atom(dwarf::DW_ATOM_die_offset,
|
||||
dwarf::DW_FORM_data4)),
|
||||
AccelObjC(DwarfAccelTable::Atom(dwarf::DW_ATOM_die_offset,
|
||||
@ -215,7 +215,7 @@ DwarfDebug::DwarfDebug(AsmPrinter *A, Module *M)
|
||||
AccelTypes(TypeAtoms), DebuggerTuning(DebuggerKind::Default) {
|
||||
|
||||
CurFn = nullptr;
|
||||
Triple TT(Asm->getTargetTriple());
|
||||
const Triple &TT = Asm->TM.getTargetTriple();
|
||||
|
||||
// Make sure we know our "debugger tuning." The target option takes
|
||||
// precedence; fall back to triple-based defaults.
|
||||
|
Loading…
Reference in New Issue
Block a user