aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Target/SparcV9/EmitBytecodeToAssembly.cpp17
-rw-r--r--lib/Target/SparcV9/SparcV9AsmPrinter.cpp4
-rw-r--r--lib/Target/SparcV9/SparcV9Internals.h2
-rw-r--r--lib/Target/SparcV9/SparcV9RegInfo.cpp1
4 files changed, 14 insertions, 10 deletions
diff --git a/lib/Target/SparcV9/EmitBytecodeToAssembly.cpp b/lib/Target/SparcV9/EmitBytecodeToAssembly.cpp
index 7cbf08557f..1a14a5300b 100644
--- a/lib/Target/SparcV9/EmitBytecodeToAssembly.cpp
+++ b/lib/Target/SparcV9/EmitBytecodeToAssembly.cpp
@@ -8,6 +8,7 @@
#include "SparcInternals.h"
#include "llvm/Bytecode/Writer.h"
+#include <ostream>
namespace {
@@ -17,10 +18,10 @@ namespace {
class sparcasmbuf : public streambuf {
std::ostream &BaseStr;
public:
- typedef char char_type;
- typedef int int_type;
- typedef streampos pos_type;
- typedef streamoff off_type;
+ typedef char char_type;
+ typedef int int_type;
+ typedef std::streampos pos_type;
+ typedef std::streamoff off_type;
sparcasmbuf(std::ostream &On) : BaseStr(On) {}
@@ -39,10 +40,10 @@ namespace {
class osparcasmstream : public ostream {
sparcasmbuf sb;
public:
- typedef char char_type;
- typedef int int_type;
- typedef streampos pos_type;
- typedef streamoff off_type;
+ typedef char char_type;
+ typedef int int_type;
+ typedef std::streampos pos_type;
+ typedef std::streamoff off_type;
explicit osparcasmstream(ostream &On) : ostream(&sb), sb(On) { }
diff --git a/lib/Target/SparcV9/SparcV9AsmPrinter.cpp b/lib/Target/SparcV9/SparcV9AsmPrinter.cpp
index 517420730a..1bc192cf37 100644
--- a/lib/Target/SparcV9/SparcV9AsmPrinter.cpp
+++ b/lib/Target/SparcV9/SparcV9AsmPrinter.cpp
@@ -23,6 +23,7 @@
#include "llvm/Module.h"
#include "Support/StringExtras.h"
#include "Support/HashExtras.h"
+#include <ostream>
using std::string;
namespace {
@@ -392,7 +393,8 @@ namespace {
class SparcModuleAsmPrinter : public Pass, public AsmPrinter {
public:
- SparcModuleAsmPrinter(ostream &os, TargetMachine &t) : AsmPrinter(os, t) {}
+ SparcModuleAsmPrinter(std::ostream &os, TargetMachine &t)
+ : AsmPrinter(os, t) {}
virtual bool run(Module *M) {
startModule(M);
diff --git a/lib/Target/SparcV9/SparcV9Internals.h b/lib/Target/SparcV9/SparcV9Internals.h
index 73f02c345b..6230ae1f77 100644
--- a/lib/Target/SparcV9/SparcV9Internals.h
+++ b/lib/Target/SparcV9/SparcV9Internals.h
@@ -310,7 +310,7 @@ public:
else if (ty <= Type::DoubleTyID)
res = FloatRegClassID; // sparc float reg class
else {
- std::cerr << "TypeID: " << ty << "\n";
+ //std::cerr << "TypeID: " << ty << "\n";
assert(0 && "Cannot resolve register class for type");
return 0;
}
diff --git a/lib/Target/SparcV9/SparcV9RegInfo.cpp b/lib/Target/SparcV9/SparcV9RegInfo.cpp
index d80678c40a..4da596db46 100644
--- a/lib/Target/SparcV9/SparcV9RegInfo.cpp
+++ b/lib/Target/SparcV9/SparcV9RegInfo.cpp
@@ -192,6 +192,7 @@ int UltraSparcRegInfo::getRegType(int reg) const {
return IntCCRegType;
else
assert(0 && "Invalid register number in getRegType");
+ return 0;
}