diff options
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp index bda0e26..5c3b900 100644 --- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp @@ -619,7 +619,7 @@ void CodeViewDebug::beginModule(Module *M) { return; } - TheCPU = mapArchToCVCPUType(Triple(M->getTargetTriple()).getArch()); + TheCPU = mapArchToCVCPUType(M->getTargetTriple().getArch()); // Get the current source language. const MDNode *Node = *M->debug_compile_units_begin(); @@ -845,7 +845,7 @@ void CodeViewDebug::emitCompilerInformation() { Flags |= static_cast<uint32_t>(CompileSym3Flags::PGO); } using ArchType = llvm::Triple::ArchType; - ArchType Arch = Triple(MMI->getModule()->getTargetTriple()).getArch(); + ArchType Arch = MMI->getModule()->getTargetTriple().getArch(); if (Asm->TM.Options.Hotpatch || Arch == ArchType::thumb || Arch == ArchType::aarch64) { Flags |= static_cast<uint32_t>(CompileSym3Flags::HotPatch); @@ -1098,7 +1098,7 @@ void CodeViewDebug::emitDebugInfoForFunction(const Function *GV, FuncName = std::string(GlobalValue::dropLLVMManglingEscape(GV->getName())); // Emit FPO data, but only on 32-bit x86. No other platforms use it. - if (Triple(MMI->getModule()->getTargetTriple()).getArch() == Triple::x86) + if (MMI->getModule()->getTargetTriple().getArch() == Triple::x86) OS.emitCVFPOData(Fn); // Emit a symbol subsection, required by VS2012+ to find function boundaries. @@ -1560,7 +1560,7 @@ void CodeViewDebug::beginFunctionImpl(const MachineFunction *MF) { } // Mark branches that may potentially be using jump tables with labels. - bool isThumb = Triple(MMI->getModule()->getTargetTriple()).getArch() == + bool isThumb = MMI->getModule()->getTargetTriple().getArch() == llvm::Triple::ArchType::thumb; discoverJumpTableBranches(MF, isThumb); } @@ -3068,7 +3068,7 @@ void CodeViewDebug::endFunctionImpl(const MachineFunction *MF) { } } - bool isThumb = Triple(MMI->getModule()->getTargetTriple()).getArch() == + bool isThumb = MMI->getModule()->getTargetTriple().getArch() == llvm::Triple::ArchType::thumb; collectDebugInfoForJumpTables(MF, isThumb); |