Skip to content

Commit cb8cc02

Browse files
jhuber6sivan-shani
authored andcommitted
[NVPTX] Remove unused static functions following llvm#126544
1 parent 72c5354 commit cb8cc02

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -761,13 +761,6 @@ void NVPTXAsmPrinter::emitDeclarations(const Module &M, raw_ostream &O) {
761761
emitAliasDeclaration(&GA, O);
762762
}
763763

764-
static bool isEmptyXXStructor(GlobalVariable *GV) {
765-
if (!GV) return true;
766-
const ConstantArray *InitList = dyn_cast<ConstantArray>(GV->getInitializer());
767-
if (!InitList) return true; // Not an array; we don't know how to parse.
768-
return InitList->getNumOperands() == 0;
769-
}
770-
771764
void NVPTXAsmPrinter::emitStartOfAsmFile(Module &M) {
772765
// Construct a default subtarget off of the TargetMachine defaults. The
773766
// rest of NVPTX isn't friendly to change subtargets per function and

0 commit comments

Comments
 (0)