[llvm] r187829 - [NVPTX] We dont have any target specific flags yet for generating symbol references, so get rid of the default-only switch statement. Fixes an MSVC warning.
Justin Holewinski
jholewinski at nvidia.com
Tue Aug 6 16:06:42 PDT 2013
Author: jholewinski
Date: Tue Aug 6 18:06:42 2013
New Revision: 187829
URL: http://llvm.org/viewvc/llvm-project?rev=187829&view=rev
Log:
[NVPTX] We dont have any target specific flags yet for generating symbol references, so get rid of the default-only switch statement. Fixes an MSVC warning.
Modified:
llvm/trunk/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
Modified: llvm/trunk/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/NVPTX/NVPTXAsmPrinter.cpp?rev=187829&r1=187828&r2=187829&view=diff
==============================================================================
--- llvm/trunk/lib/Target/NVPTX/NVPTXAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/NVPTX/NVPTXAsmPrinter.cpp Tue Aug 6 18:06:42 2013
@@ -406,13 +406,8 @@ unsigned NVPTXAsmPrinter::encodeVirtualR
MCOperand NVPTXAsmPrinter::GetSymbolRef(const MachineOperand &MO,
const MCSymbol *Symbol) {
const MCExpr *Expr;
- switch (MO.getTargetFlags()) {
- default: {
- Expr = MCSymbolRefExpr::Create(Symbol, MCSymbolRefExpr::VK_None,
- OutContext);
- break;
- }
- }
+ Expr = MCSymbolRefExpr::Create(Symbol, MCSymbolRefExpr::VK_None,
+ OutContext);
return MCOperand::CreateExpr(Expr);
}
More information about the llvm-commits
mailing list