diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-08-14 19:59:24 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-08-14 19:59:24 +0000 |
commit | 6cb1eb5a6de479f458a9aad847aec1f6fe8425f2 (patch) | |
tree | f781e74228cbf683aa89807daccd80748ccd53c3 /llvm/lib/MC/MCAsmStreamer.cpp | |
parent | 6b5cb8a6b341c802070c7ae10aa3e926e4f465fd (diff) | |
download | bcm5719-llvm-6cb1eb5a6de479f458a9aad847aec1f6fe8425f2.tar.gz bcm5719-llvm-6cb1eb5a6de479f458a9aad847aec1f6fe8425f2.zip |
llvm-mc: Fix bugs where bytes were unintentionally being printed as signed.
- We now print all of 403.gcc cleanly (llvm-mc -> 'as' as diffed to 'as'), minus two
'rep;movsl' instructions (which I missed before).
llvm-svn: 79031
Diffstat (limited to 'llvm/lib/MC/MCAsmStreamer.cpp')
-rw-r--r-- | llvm/lib/MC/MCAsmStreamer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCAsmStreamer.cpp b/llvm/lib/MC/MCAsmStreamer.cpp index 41f88334e2b..273b17d3c2c 100644 --- a/llvm/lib/MC/MCAsmStreamer.cpp +++ b/llvm/lib/MC/MCAsmStreamer.cpp @@ -210,7 +210,7 @@ void MCAsmStreamer::EmitZerofill(MCSection *Section, MCSymbol *Symbol, void MCAsmStreamer::EmitBytes(const StringRef &Data) { assert(CurSection && "Cannot emit contents before setting section!"); for (unsigned i = 0, e = Data.size(); i != e; ++i) - OS << ".byte " << (unsigned) Data[i] << '\n'; + OS << ".byte " << (unsigned) (unsigned char) Data[i] << '\n'; } void MCAsmStreamer::EmitValue(const MCValue &Value, unsigned Size) { |