diff options
author | Justin Holewinski <jholewinski@nvidia.com> | 2013-08-06 23:06:42 +0000 |
---|---|---|
committer | Justin Holewinski <jholewinski@nvidia.com> | 2013-08-06 23:06:42 +0000 |
commit | 06d63b31beb38a0c30dfa94543e53d8632531417 (patch) | |
tree | a3455b939daa09b7ff4f5af5748e08dfe491d9e5 /lib/Target/NVPTX | |
parent | 6b034bb3ae3f6e1f3831bfc24f90e84b9578944c (diff) | |
download | external_llvm-06d63b31beb38a0c30dfa94543e53d8632531417.zip external_llvm-06d63b31beb38a0c30dfa94543e53d8632531417.tar.gz external_llvm-06d63b31beb38a0c30dfa94543e53d8632531417.tar.bz2 |
[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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187829 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/NVPTX')
-rw-r--r-- | lib/Target/NVPTX/NVPTXAsmPrinter.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/Target/NVPTX/NVPTXAsmPrinter.cpp b/lib/Target/NVPTX/NVPTXAsmPrinter.cpp index fb4d4df..a2b9bec 100644 --- a/lib/Target/NVPTX/NVPTXAsmPrinter.cpp +++ b/lib/Target/NVPTX/NVPTXAsmPrinter.cpp @@ -406,13 +406,8 @@ unsigned NVPTXAsmPrinter::encodeVirtualRegister(unsigned Reg) { 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); } |