mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-14 09:56:23 +00:00
Stop calling getTargetTriple off of the AsmPrinter and constructing a
TargetTriple, just grab it off of the TargetMachine. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283001 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
76315dae17
commit
0c503049b8
@ -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…
x
Reference in New Issue
Block a user