[llvm] r229790 - Avoid using a self-referential initializer and fix up uses.

Eric Christopher echristo at gmail.com
Wed Feb 18 16:22:47 PST 2015


Author: echristo
Date: Wed Feb 18 18:22:47 2015
New Revision: 229790

URL: http://llvm.org/viewvc/llvm-project?rev=229790&view=rev
Log:
Avoid using a self-referential initializer and fix up uses.

Modified:
    llvm/trunk/lib/Target/NVPTX/NVPTXAsmPrinter.cpp

Modified: llvm/trunk/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/NVPTX/NVPTXAsmPrinter.cpp?rev=229790&r1=229789&r2=229790&view=diff
==============================================================================
--- llvm/trunk/lib/Target/NVPTX/NVPTXAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/NVPTX/NVPTXAsmPrinter.cpp Wed Feb 18 18:22:47 2015
@@ -908,8 +908,8 @@ void NVPTXAsmPrinter::emitHeader(Module
   O << ".target ";
   O << STI.getTargetName();
 
-  const NVPTXTargetMachine &TM = static_cast<const NVPTXTargetMachine &>(TM);
-  if (TM.getDrvInterface() == NVPTX::NVCL)
+  const NVPTXTargetMachine &NTM = static_cast<const NVPTXTargetMachine &>(TM);
+  if (NTM.getDrvInterface() == NVPTX::NVCL)
     O << ", texmode_independent";
   else {
     if (!STI.hasDouble())
@@ -922,7 +922,7 @@ void NVPTXAsmPrinter::emitHeader(Module
   O << "\n";
 
   O << ".address_size ";
-  if (TM.is64Bit())
+  if (NTM.is64Bit())
     O << "64";
   else
     O << "32";





More information about the llvm-commits mailing list