diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-11-15 19:20:50 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-11-15 19:20:50 +0000 |
commit | 3285877131ed40d7fe75babf4ee3f4e0d287e4a4 (patch) | |
tree | 64551806f161d75aef22dbcf429bbaab17aab795 /lib | |
parent | a99e778ed894402a4468ad0b695716226471d726 (diff) | |
download | external_llvm-3285877131ed40d7fe75babf4ee3f4e0d287e4a4.zip external_llvm-3285877131ed40d7fe75babf4ee3f4e0d287e4a4.tar.gz external_llvm-3285877131ed40d7fe75babf4ee3f4e0d287e4a4.tar.bz2 |
Fix compiler warnigns.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119175 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/MC/ELFObjectWriter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/MC/ELFObjectWriter.cpp b/lib/MC/ELFObjectWriter.cpp index 18d8e74..b15c2d4 100644 --- a/lib/MC/ELFObjectWriter.cpp +++ b/lib/MC/ELFObjectWriter.cpp @@ -290,7 +290,7 @@ namespace { const MCFragment *Fragment, const MCFixup &Fixup, MCValue Target, uint64_t &FixedValue) { assert(0 && "RecordRelocation is not specific enough"); - }; + } virtual uint64_t getSymbolIndexInSymbolTable(const MCAssembler &Asm, const MCSymbol *S); @@ -1335,7 +1335,7 @@ MCObjectWriter *llvm::createELFObjectWriter(raw_ostream &OS, case ELF::EM_ARM: return new ARMELFObjectWriter(OS, Is64Bit, IsLittleEndian, EMachine, HasRelocationAddend, OSType); break; - default: assert(0 && "Unsupported architecture"); break; + default: llvm_unreachable("Unsupported architecture"); break; } } |