]> granicus.if.org Git - llvm/commit
[NVPTXAsmPrinter] clean up dead code. NFC
authorNick Desaulniers <ndesaulniers@google.com>
Tue, 16 Apr 2019 21:04:34 +0000 (21:04 +0000)
committerNick Desaulniers <ndesaulniers@google.com>
Tue, 16 Apr 2019 21:04:34 +0000 (21:04 +0000)
commitc387f2b3f2c3803a2070184f3996dbf19c758a52
tree5727e02008da5f96c2992924ff6c61f4e14f2501
parent29d0764b94ee70258a6cc7f553a698a4bb079ef3
[NVPTXAsmPrinter] clean up dead code. NFC

Summary:
The printOperand function takes a default parameter, for which there are
zero call sites that explicitly pass such a parameter.  As such, there
is no case to support. This means that the method
printVecModifiedImmediate is purly dead code, and can be removed.

The eventual goal for some of these AsmPrinter refactoring is to have
printOperand be a virtual method; making it easier to print operands
from the base class for more generic Asm printing. It will help if all
printOperand methods have the same function signature (ie. no Modifier
argument when not needed).

Reviewers: echristo, tra

Reviewed By: echristo

Subscribers: jholewinski, hiraditya, llvm-commits, craig.topper, srhines

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D60727

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358527 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/NVPTX/NVPTXAsmPrinter.cpp
lib/Target/NVPTX/NVPTXAsmPrinter.h