summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCAsmStreamer.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-14 19:59:24 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-14 19:59:24 +0000
commit6cb1eb5a6de479f458a9aad847aec1f6fe8425f2 (patch)
treef781e74228cbf683aa89807daccd80748ccd53c3 /llvm/lib/MC/MCAsmStreamer.cpp
parent6b5cb8a6b341c802070c7ae10aa3e926e4f465fd (diff)
downloadbcm5719-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.cpp2
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) {
OpenPOWER on IntegriCloud