1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

Avoid using a self-referential initializer and fix up uses.

llvm-svn: 229790
This commit is contained in:
Eric Christopher 2015-02-19 00:22:47 +00:00
parent e2a3acb8e3
commit 4d90747761

View File

@ -908,8 +908,8 @@ void NVPTXAsmPrinter::emitHeader(Module &M, raw_ostream &O,
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 &M, raw_ostream &O,
O << "\n";
O << ".address_size ";
if (TM.is64Bit())
if (NTM.is64Bit())
O << "64";
else
O << "32";