diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-12-04 03:21:47 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-12-04 03:21:47 +0000 |
commit | 1c8ac8f027d4a7af830e91513f37a2139c684f19 (patch) | |
tree | 55a7d4f84240669759d3fbb0f15e301960e720fb /llvm/lib/MC/MCLoggingStreamer.cpp | |
parent | 4fb115d2f3e353f1c3fdba2a2e060c5d7dfb9f40 (diff) | |
download | bcm5719-llvm-1c8ac8f027d4a7af830e91513f37a2139c684f19.tar.gz bcm5719-llvm-1c8ac8f027d4a7af830e91513f37a2139c684f19.zip |
There are two reasons why we might want to use
foo = a - b
.long foo
instead of just
.long a - b
First, on darwin9 64 bits the assembler produces the wrong result. Second,
if "a" is the end of the section all darwin assemblers (9, 10 and mc) will not
consider a - b to be a constant but will if the dummy foo is created.
Split how we handle these cases. The first one is something MC should take care
of. The second one has to be handled by the caller.
llvm-svn: 120889
Diffstat (limited to 'llvm/lib/MC/MCLoggingStreamer.cpp')
-rw-r--r-- | llvm/lib/MC/MCLoggingStreamer.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCLoggingStreamer.cpp b/llvm/lib/MC/MCLoggingStreamer.cpp index 6cbef0b0250..134554b8006 100644 --- a/llvm/lib/MC/MCLoggingStreamer.cpp +++ b/llvm/lib/MC/MCLoggingStreamer.cpp @@ -154,8 +154,7 @@ public: return Child->EmitBytes(Data, AddrSpace); } - virtual void EmitValue(const MCExpr *Value, unsigned Size,unsigned AddrSpace, - bool UseSet = false){ + virtual void EmitValue(const MCExpr *Value, unsigned Size,unsigned AddrSpace){ LogCall("EmitValue"); return Child->EmitValue(Value, Size, AddrSpace); } |