[llvm] r231810 - NVPTX: Remove copy of LLVMInitializeNVPTXAsmPrinter.
Benjamin Kramer
benny.kra at googlemail.com
Tue Mar 10 11:19:24 PDT 2015
Author: d0k
Date: Tue Mar 10 13:19:24 2015
New Revision: 231810
URL: http://llvm.org/viewvc/llvm-project?rev=231810&view=rev
Log:
NVPTX: Remove copy of LLVMInitializeNVPTXAsmPrinter.
If anyone is using this for some strange reason,
LLVMInitializeNVPTXAsmPrinter does exactly the same thing and is what
other LLVM tools are calling.
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=231810&r1=231809&r2=231810&view=diff
==============================================================================
--- llvm/trunk/lib/Target/NVPTX/NVPTXAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/NVPTX/NVPTXAsmPrinter.cpp Tue Mar 10 13:19:24 2015
@@ -2085,13 +2085,6 @@ void NVPTXAsmPrinter::printMemOperand(co
}
}
-
-// Force static initialization.
-extern "C" void LLVMInitializeNVPTXBackendAsmPrinter() {
- RegisterAsmPrinter<NVPTXAsmPrinter> X(TheNVPTXTarget32);
- RegisterAsmPrinter<NVPTXAsmPrinter> Y(TheNVPTXTarget64);
-}
-
void NVPTXAsmPrinter::emitSrcInText(StringRef filename, unsigned line) {
std::stringstream temp;
LineReader *reader = this->getReader(filename.str());
More information about the llvm-commits
mailing list