[PATCH] D140399: [NFC][NVPTX] Remove dead comment and commented code
Luke Drummond via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 20 07:01:44 PST 2022
ldrumm created this revision.
ldrumm added reviewers: jholewinski, tra.
Herald added subscribers: mattd, gchakrabarti, asavonic, hiraditya.
Herald added a project: All.
ldrumm requested review of this revision.
Herald added a project: LLVM.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D140399
Files:
llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
Index: llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
===================================================================
--- llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
+++ llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
@@ -913,15 +913,6 @@
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140399.484260.patch
Type: text/x-patch
Size: 686 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221220/6f2f0fce/attachment.bin>
More information about the llvm-commits
mailing list