1010#include " llvm/Support/Debug.h"
1111#include < sstream>
1212
13- using namespace llvm ;
14- using namespace sandboxir ;
13+ using namespace llvm ::sandboxir;
1514
16- sandboxir:: Value::Value (ClassID SubclassID, llvm::Value *Val, Context &Ctx)
15+ Value::Value (ClassID SubclassID, llvm::Value *Val, Context &Ctx)
1716 : SubclassID(SubclassID), Val(Val), Ctx(Ctx) {
1817#ifndef NDEBUG
1918 UID = 0 ; // FIXME: Once SBContext is available.
2019#endif
2120}
2221
2322#ifndef NDEBUG
24- std::string sandboxir:: Value::getName () const {
23+ std::string Value::getName () const {
2524 std::stringstream SS;
2625 SS << " SB" << UID << " ." ;
2726 return SS.str ();
2827}
2928
30- void sandboxir:: Value::dumpCommonHeader (raw_ostream &OS) const {
29+ void Value::dumpCommonHeader (raw_ostream &OS) const {
3130 OS << getName () << " " << getSubclassIDStr (SubclassID) << " " ;
3231}
3332
34- void sandboxir:: Value::dumpCommonFooter (raw_ostream &OS) const {
33+ void Value::dumpCommonFooter (raw_ostream &OS) const {
3534 OS.indent (2 ) << " Val: " ;
3635 if (Val)
3736 OS << *Val;
@@ -40,26 +39,26 @@ void sandboxir::Value::dumpCommonFooter(raw_ostream &OS) const {
4039 OS << " \n " ;
4140}
4241
43- void sandboxir:: Value::dumpCommonPrefix (raw_ostream &OS) const {
42+ void Value::dumpCommonPrefix (raw_ostream &OS) const {
4443 if (Val)
4544 OS << *Val;
4645 else
4746 OS << " NULL " ;
4847}
4948
50- void sandboxir:: Value::dumpCommonSuffix (raw_ostream &OS) const {
49+ void Value::dumpCommonSuffix (raw_ostream &OS) const {
5150 OS << " ; " << getName () << " (" << getSubclassIDStr (SubclassID) << " ) "
5251 << this ;
5352}
5453
55- void sandboxir:: Value::printAsOperandCommon (raw_ostream &OS) const {
54+ void Value::printAsOperandCommon (raw_ostream &OS) const {
5655 if (Val)
5756 Val->printAsOperand (OS);
5857 else
5958 OS << " NULL " ;
6059}
6160
62- void sandboxir:: User::dumpCommonHeader (raw_ostream &OS) const {
61+ void User::dumpCommonHeader (raw_ostream &OS) const {
6362 Value::dumpCommonHeader (OS);
6463 // TODO: This is incomplete
6564}
0 commit comments