aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/Mips/MCTargetDesc
diff options
context:
space:
mode:
authorJack Carter <jcarter@mips.com>2013-02-05 07:47:41 +0000
committerJack Carter <jcarter@mips.com>2013-02-05 07:47:41 +0000
commit9c5b94b6be08afe22b576d007353a0002603cef1 (patch)
tree4a258c99dac0870a8f3fbb009c0fffec96a99b69 /lib/Target/Mips/MCTargetDesc
parent31fb5dafce280ddcc945e2136d11e5c69a3d3493 (diff)
This patch changes a static_cast to dyn_cast
for MipsELFStreamer objects. Contributer: Jack Carter git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174354 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MCTargetDesc')
-rw-r--r--lib/Target/Mips/MCTargetDesc/MipsELFStreamer.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.h b/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.h
index 0d067e063b..360dbe178c 100644
--- a/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.h
+++ b/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.h
@@ -19,12 +19,16 @@ public:
MipsELFStreamer(MCContext &Context, MCAsmBackend &TAB,
raw_ostream &OS, MCCodeEmitter *Emitter,
bool RelaxAll, bool NoExecStack)
- : MCELFStreamer(Context, TAB, OS, Emitter) {
+ : MCELFStreamer(SK_MipsELFStreamer, Context, TAB, OS, Emitter) {
}
~MipsELFStreamer() {}
void emitELFHeaderFlagsCG(const MipsSubtarget &Subtarget);
// void emitELFHeaderFlagCG(unsigned Val);
+
+ static bool classof(const MCStreamer *S) {
+ return S->getKind() == SK_MipsELFStreamer;
+ }
};
MCELFStreamer* createMipsELFStreamer(MCContext &Context, MCAsmBackend &TAB,