1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 11:33:24 +02:00

Be const correct

llvm-svn: 826
This commit is contained in:
Chris Lattner 2001-10-15 15:54:43 +00:00
parent a68fff6614
commit eba2b7cf61
3 changed files with 5 additions and 5 deletions

View File

@ -82,7 +82,7 @@ public:
// method. The specified method must have been compiled before this may be
// used.
//
virtual void emitAssembly(const Module *M, ostream &OutStr) = 0;
virtual void emitAssembly(const Module *M, ostream &OutStr) const = 0;
};
#endif

View File

@ -21,7 +21,7 @@ namespace {
class SparcAsmPrinter {
ostream &Out;
SlotCalculator Table;
UltraSparc &Target;
const UltraSparc &Target;
enum Sections {
Unknown,
@ -30,7 +30,7 @@ class SparcAsmPrinter {
ReadOnly,
} CurSection;
public:
inline SparcAsmPrinter(ostream &o, const Module *M, UltraSparc &t)
inline SparcAsmPrinter(ostream &o, const Module *M, const UltraSparc &t)
: Out(o), Table(SlotCalculator(M, true)), Target(t), CurSection(Unknown) {
emitModule(M);
}
@ -230,6 +230,6 @@ void SparcAsmPrinter::emitModule(const Module *M) {
// method. The specified method must have been compiled before this may be
// used.
//
void UltraSparc::emitAssembly(const Module *M, ostream &Out) {
void UltraSparc::emitAssembly(const Module *M, ostream &Out) const {
SparcAsmPrinter Print(Out, M, *this);
}

View File

@ -1082,7 +1082,7 @@ public:
// module. The specified module must have been compiled before this may be
// used.
//
virtual void emitAssembly(const Module *M, ostream &OutStr);
virtual void emitAssembly(const Module *M, ostream &OutStr) const;
};