aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Drummond <luke.drummond@codeplay.com>2022-12-19 14:59:12 +0000
committerLuke Drummond <luke.drummond@codeplay.com>2022-12-23 12:10:49 +0000
commit22bf4a7e89c07255856366f2710974642e482920 (patch)
tree12904160659b25e363f4edaeb9b10c4d3d83e881
parent391cb541223bb0d41620eb5e25c107563dc3e12c (diff)
downloadllvm-22bf4a7e89c07255856366f2710974642e482920.zip
llvm-22bf4a7e89c07255856366f2710974642e482920.tar.gz
llvm-22bf4a7e89c07255856366f2710974642e482920.tar.bz2
[NFC][NVPTX] Remove dead comment and commented code
A confusing comment after the last return statement in `NVPTXAsmPrinter::doFinalization` referred to a preprocessor macro (NVISA) that has never existed since the NVPTX backend has been a part of upstream llvm - as far as the pickaxe will tell me anyway. Thus I've removed it. Differential Revision: https://reviews.llvm.org/D140399
-rw-r--r--llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp b/llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
index da1662e..076f394 100644
--- a/llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
+++ b/llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
@@ -913,15 +913,6 @@ bool NVPTXAsmPrinter::doFinalization(Module &M) {
TS->outputDwarfFileDirectives();
return ret;
-
- //bool Result = AsmPrinter::doFinalization(M);
- // Instead of calling the parents doFinalization, we may
- // clone parents doFinalization and customize here.
- // Currently, we if NVISA out the EmitGlobals() in
- // parent's doFinalization, which is too intrusive.
- //
- // Same for the doInitialization.
- //return Result;
}
// This function emits appropriate linkage directives for