[llvm] [NFC] [llvm] remove unused function (PR #126613)
Florian Mayer via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 10 14:24:18 PST 2025
https://github.com/fmayer created https://github.com/llvm/llvm-project/pull/126613
None
>From 0331c287dd29ed4f64166795e05c7f772317e349 Mon Sep 17 00:00:00 2001
From: Florian Mayer <fmayer at google.com>
Date: Mon, 10 Feb 2025 14:23:56 -0800
Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?=
=?UTF-8?q?l=20version?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Created using spr 1.3.4
---
llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp | 7 -------
1 file changed, 7 deletions(-)
diff --git a/llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp b/llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
index 68a0f4cb0ade9e..75d930d9f7b6f9 100644
--- a/llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
+++ b/llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
@@ -761,13 +761,6 @@ void NVPTXAsmPrinter::emitDeclarations(const Module &M, raw_ostream &O) {
emitAliasDeclaration(&GA, O);
}
-static bool isEmptyXXStructor(GlobalVariable *GV) {
- if (!GV) return true;
- const ConstantArray *InitList = dyn_cast<ConstantArray>(GV->getInitializer());
- if (!InitList) return true; // Not an array; we don't know how to parse.
- return InitList->getNumOperands() == 0;
-}
-
void NVPTXAsmPrinter::emitStartOfAsmFile(Module &M) {
// Construct a default subtarget off of the TargetMachine defaults. The
// rest of NVPTX isn't friendly to change subtargets per function and
More information about the llvm-commits
mailing list