[llvm] r193500 - NVPTX: Remove unused globals.
Benjamin Kramer
benny.kra at googlemail.com
Sun Oct 27 04:31:47 PDT 2013
Author: d0k
Date: Sun Oct 27 06:31:46 2013
New Revision: 193500
URL: http://llvm.org/viewvc/llvm-project?rev=193500&view=rev
Log:
NVPTX: Remove unused globals.
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=193500&r1=193499&r2=193500&view=diff
==============================================================================
--- llvm/trunk/lib/Target/NVPTX/NVPTXAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/NVPTX/NVPTXAsmPrinter.cpp Sun Oct 27 06:31:46 2013
@@ -48,8 +48,6 @@
#include <sstream>
using namespace llvm;
-bool RegAllocNilUsed = true;
-
#define DEPOTNAME "__local_depot"
static cl::opt<bool>
@@ -57,12 +55,10 @@ EmitLineNumbers("nvptx-emit-line-numbers
cl::desc("NVPTX Specific: Emit Line numbers even without -G"),
cl::init(true));
-namespace llvm { bool InterleaveSrcInPtx = false; }
-
-static cl::opt<bool, true>
+static cl::opt<bool>
InterleaveSrc("nvptx-emit-src", cl::ZeroOrMore, cl::Hidden,
cl::desc("NVPTX Specific: Emit source line in ptx file"),
- cl::location(llvm::InterleaveSrcInPtx));
+ cl::init(false));
namespace {
/// DiscoverDependentGlobals - Return a set of GlobalVariables on which \p V
@@ -295,7 +291,7 @@ void NVPTXAsmPrinter::emitLineNumberAsDo
return;
// Emit the line from the source file.
- if (llvm::InterleaveSrcInPtx)
+ if (InterleaveSrc)
this->emitSrcInText(fileName.str(), curLoc.getLine());
std::stringstream temp;
More information about the llvm-commits
mailing list