mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-05 14:34:55 +00:00
NVPTX: Remove unused globals.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193500 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
41f75d1671
commit
703c75c8ae
@ -48,8 +48,6 @@
|
|||||||
#include <sstream>
|
#include <sstream>
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
bool RegAllocNilUsed = true;
|
|
||||||
|
|
||||||
#define DEPOTNAME "__local_depot"
|
#define DEPOTNAME "__local_depot"
|
||||||
|
|
||||||
static cl::opt<bool>
|
static cl::opt<bool>
|
||||||
@ -57,12 +55,10 @@ EmitLineNumbers("nvptx-emit-line-numbers", cl::Hidden,
|
|||||||
cl::desc("NVPTX Specific: Emit Line numbers even without -G"),
|
cl::desc("NVPTX Specific: Emit Line numbers even without -G"),
|
||||||
cl::init(true));
|
cl::init(true));
|
||||||
|
|
||||||
namespace llvm { bool InterleaveSrcInPtx = false; }
|
static cl::opt<bool>
|
||||||
|
|
||||||
static cl::opt<bool, true>
|
|
||||||
InterleaveSrc("nvptx-emit-src", cl::ZeroOrMore, cl::Hidden,
|
InterleaveSrc("nvptx-emit-src", cl::ZeroOrMore, cl::Hidden,
|
||||||
cl::desc("NVPTX Specific: Emit source line in ptx file"),
|
cl::desc("NVPTX Specific: Emit source line in ptx file"),
|
||||||
cl::location(llvm::InterleaveSrcInPtx));
|
cl::init(false));
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
/// DiscoverDependentGlobals - Return a set of GlobalVariables on which \p V
|
/// DiscoverDependentGlobals - Return a set of GlobalVariables on which \p V
|
||||||
@ -295,7 +291,7 @@ void NVPTXAsmPrinter::emitLineNumberAsDotLoc(const MachineInstr &MI) {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
// Emit the line from the source file.
|
// Emit the line from the source file.
|
||||||
if (llvm::InterleaveSrcInPtx)
|
if (InterleaveSrc)
|
||||||
this->emitSrcInText(fileName.str(), curLoc.getLine());
|
this->emitSrcInText(fileName.str(), curLoc.getLine());
|
||||||
|
|
||||||
std::stringstream temp;
|
std::stringstream temp;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user