[llvm] 123beb7 - [NFC][SandboxIR] Drop namespace:: prefix.
Vasileios Porpodas via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 2 09:08:16 PDT 2024
Author: Vasileios Porpodas
Date: 2024-07-02T09:07:38-07:00
New Revision: 123beb7926651217024e5db58b93ab9e8f3c77c7
URL: https://github.com/llvm/llvm-project/commit/123beb7926651217024e5db58b93ab9e8f3c77c7
DIFF: https://github.com/llvm/llvm-project/commit/123beb7926651217024e5db58b93ab9e8f3c77c7.diff
LOG: [NFC][SandboxIR] Drop namespace:: prefix.
Added:
Modified:
llvm/lib/SandboxIR/SandboxIR.cpp
Removed:
################################################################################
diff --git a/llvm/lib/SandboxIR/SandboxIR.cpp b/llvm/lib/SandboxIR/SandboxIR.cpp
index 70101ab10ff12..86757029c821c 100644
--- a/llvm/lib/SandboxIR/SandboxIR.cpp
+++ b/llvm/lib/SandboxIR/SandboxIR.cpp
@@ -10,10 +10,9 @@
#include "llvm/Support/Debug.h"
#include <sstream>
-using namespace llvm;
-using namespace sandboxir;
+using namespace llvm::sandboxir;
-sandboxir::Value::Value(ClassID SubclassID, llvm::Value *Val, Context &Ctx)
+Value::Value(ClassID SubclassID, llvm::Value *Val, Context &Ctx)
: SubclassID(SubclassID), Val(Val), Ctx(Ctx) {
#ifndef NDEBUG
UID = 0; // FIXME: Once SBContext is available.
@@ -21,17 +20,17 @@ sandboxir::Value::Value(ClassID SubclassID, llvm::Value *Val, Context &Ctx)
}
#ifndef NDEBUG
-std::string sandboxir::Value::getName() const {
+std::string Value::getName() const {
std::stringstream SS;
SS << "SB" << UID << ".";
return SS.str();
}
-void sandboxir::Value::dumpCommonHeader(raw_ostream &OS) const {
+void Value::dumpCommonHeader(raw_ostream &OS) const {
OS << getName() << " " << getSubclassIDStr(SubclassID) << " ";
}
-void sandboxir::Value::dumpCommonFooter(raw_ostream &OS) const {
+void Value::dumpCommonFooter(raw_ostream &OS) const {
OS.indent(2) << "Val: ";
if (Val)
OS << *Val;
@@ -40,26 +39,26 @@ void sandboxir::Value::dumpCommonFooter(raw_ostream &OS) const {
OS << "\n";
}
-void sandboxir::Value::dumpCommonPrefix(raw_ostream &OS) const {
+void Value::dumpCommonPrefix(raw_ostream &OS) const {
if (Val)
OS << *Val;
else
OS << "NULL ";
}
-void sandboxir::Value::dumpCommonSuffix(raw_ostream &OS) const {
+void Value::dumpCommonSuffix(raw_ostream &OS) const {
OS << " ; " << getName() << " (" << getSubclassIDStr(SubclassID) << ") "
<< this;
}
-void sandboxir::Value::printAsOperandCommon(raw_ostream &OS) const {
+void Value::printAsOperandCommon(raw_ostream &OS) const {
if (Val)
Val->printAsOperand(OS);
else
OS << "NULL ";
}
-void sandboxir::User::dumpCommonHeader(raw_ostream &OS) const {
+void User::dumpCommonHeader(raw_ostream &OS) const {
Value::dumpCommonHeader(OS);
// TODO: This is incomplete
}
More information about the llvm-commits
mailing list