diff options
author | Daniel Sanders <daniel.sanders@imgtec.com> | 2015-11-27 18:00:36 +0000 |
---|---|---|
committer | Daniel Sanders <daniel.sanders@imgtec.com> | 2015-11-27 18:00:36 +0000 |
commit | 8f8eb8f545881c2a27e995086c1f0d8889f236dc (patch) | |
tree | 5c8abbc0044f225306635335a7b8bdd1ed1b269b /clang/lib/CodeGen | |
parent | 586be024958bfe96644a726417604bc9907ba0a2 (diff) | |
download | bcm5719-llvm-8f8eb8f545881c2a27e995086c1f0d8889f236dc.tar.gz bcm5719-llvm-8f8eb8f545881c2a27e995086c1f0d8889f236dc.zip |
Revert r254203: [mips] Interrupt attribute support.
I forgot to credit the author.
llvm-svn: 254204
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/TargetInfo.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/clang/lib/CodeGen/TargetInfo.cpp b/clang/lib/CodeGen/TargetInfo.cpp index df081b4fb9f..06a2e71f5c0 100644 --- a/clang/lib/CodeGen/TargetInfo.cpp +++ b/clang/lib/CodeGen/TargetInfo.cpp @@ -5893,27 +5893,6 @@ public: else if (FD->hasAttr<NoMips16Attr>()) { Fn->addFnAttr("nomips16"); } - - const MipsInterruptAttr *Attr = FD->getAttr<MipsInterruptAttr>(); - if (!Attr) - return; - - const char *Kind; - switch (Attr->getInterrupt()) { - default: llvm_unreachable("Unknown Mips interrupt attribute type!"); - case MipsInterruptAttr::eic: Kind = "eic"; break; - case MipsInterruptAttr::sw0: Kind = "sw0"; break; - case MipsInterruptAttr::sw1: Kind = "sw1"; break; - case MipsInterruptAttr::hw0: Kind = "hw0"; break; - case MipsInterruptAttr::hw1: Kind = "hw1"; break; - case MipsInterruptAttr::hw2: Kind = "hw2"; break; - case MipsInterruptAttr::hw3: Kind = "hw3"; break; - case MipsInterruptAttr::hw4: Kind = "hw4"; break; - case MipsInterruptAttr::hw5: Kind = "hw5"; break; - } - - Fn->addFnAttr("interrupt", Kind); - } bool initDwarfEHRegSizeTable(CodeGen::CodeGenFunction &CGF, |