diff options
author | Evan Cheng <evan.cheng@apple.com> | 2011-01-13 07:58:56 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2011-01-13 07:58:56 +0000 |
commit | 7597212abced110723f2fee985a7d60557c092ec (patch) | |
tree | 5e01be3847a6ec23112b8feb910ac5a2bb6b2fcb /lib/MC/MCObjectStreamer.cpp | |
parent | 04f5079ca1fd6c46a2b2efc369e293fb6feab793 (diff) |
Model :upper16: and :lower16: as ARM specific MCTargetExpr. This is a step
in the right direction. It eliminated some hacks and will unblock codegen
work. But it's far from being done. It doesn't reject illegal expressions,
e.g. (FOO - :lower16:BAR). It also doesn't work in Thumb2 mode at all.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123369 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCObjectStreamer.cpp')
-rw-r--r-- | lib/MC/MCObjectStreamer.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/MC/MCObjectStreamer.cpp b/lib/MC/MCObjectStreamer.cpp index b428e8747b..ecd7257c70 100644 --- a/lib/MC/MCObjectStreamer.cpp +++ b/lib/MC/MCObjectStreamer.cpp @@ -56,7 +56,10 @@ MCDataFragment *MCObjectStreamer::getOrCreateDataFragment() const { const MCExpr *MCObjectStreamer::AddValueSymbols(const MCExpr *Value) { switch (Value->getKind()) { - case MCExpr::Target: llvm_unreachable("Can't handle target exprs yet!"); + case MCExpr::Target: + cast<MCTargetExpr>(Value)->AddValueSymbols(Assembler); + break; + case MCExpr::Constant: break; |