mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
Add debugging support.
llvm-svn: 58408
This commit is contained in:
parent
479adf22ee
commit
5e8fa6ef36
@ -15,7 +15,9 @@
|
||||
#include "llvm/ADT/FoldingSet.h"
|
||||
#include "llvm/GlobalValue.h"
|
||||
#include "llvm/Type.h"
|
||||
#include "llvm/Support/Streams.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include <ostream>
|
||||
using namespace llvm;
|
||||
|
||||
ARMConstantPoolValue::ARMConstantPoolValue(GlobalValue *gv, unsigned id,
|
||||
@ -73,6 +75,15 @@ ARMConstantPoolValue::AddSelectionDAGCSEId(FoldingSetNodeID &ID) {
|
||||
ID.AddInteger(PCAdjust);
|
||||
}
|
||||
|
||||
void ARMConstantPoolValue::dump() const {
|
||||
cerr << " " << *this;
|
||||
}
|
||||
|
||||
void ARMConstantPoolValue::print(std::ostream &O) const {
|
||||
raw_os_ostream RawOS(O);
|
||||
print(RawOS);
|
||||
}
|
||||
|
||||
void ARMConstantPoolValue::print(raw_ostream &O) const {
|
||||
if (GV)
|
||||
O << GV->getName();
|
||||
|
@ -69,9 +69,23 @@ public:
|
||||
|
||||
virtual void AddSelectionDAGCSEId(FoldingSetNodeID &ID);
|
||||
|
||||
virtual void print(raw_ostream &O) const;
|
||||
void print(std::ostream *O) const { if (O) print(*O); }
|
||||
void print(std::ostream &O) const;
|
||||
void print(raw_ostream *O) const { if (O) print(*O); }
|
||||
void print(raw_ostream &O) const;
|
||||
void dump() const;
|
||||
};
|
||||
|
||||
inline std::ostream &operator<<(std::ostream &O, const ARMConstantPoolValue &V) {
|
||||
V.print(O);
|
||||
return O;
|
||||
}
|
||||
|
||||
inline raw_ostream &operator<<(raw_ostream &O, const ARMConstantPoolValue &V) {
|
||||
V.print(O);
|
||||
return O;
|
||||
}
|
||||
|
||||
} // End llvm namespace
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user