Skip to content

Commit

Permalink
Stop calling getTargetTriple off of the AsmPrinter and constructing a
Browse files Browse the repository at this point in the history
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
  • Loading branch information
echristo committed Oct 1, 2016
1 parent 76315da commit 0c50304
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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.
Expand Down

0 comments on commit 0c50304

Please sign in to comment.