mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-02 16:56:39 +00:00
Be const correct
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@826 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
90c5b3d753
commit
ec0a95f4e4
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user