Finegrainify namespacification

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15381 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2004-08-01 03:55:39 +00:00
parent 1ab7c5b5e8
commit 2082ebe8b3
9 changed files with 26 additions and 49 deletions
+5 -8
View File
@@ -16,16 +16,15 @@
#include "CodeGenWrappers.h"
#include "Record.h"
namespace llvm {
using namespace llvm;
/// getValueType - Return the MCV::ValueType that the specified TableGen record
/// corresponds to.
MVT::ValueType getValueType(Record *Rec) {
MVT::ValueType llvm::getValueType(Record *Rec) {
return (MVT::ValueType)Rec->getValueAsInt("Value");
}
std::string getName(MVT::ValueType T) {
std::string llvm::getName(MVT::ValueType T) {
switch (T) {
case MVT::Other: return "UNKNOWN";
case MVT::i1: return "i1";
@@ -43,7 +42,7 @@ std::string getName(MVT::ValueType T) {
}
}
std::string getEnumName(MVT::ValueType T) {
std::string llvm::getEnumName(MVT::ValueType T) {
switch (T) {
case MVT::Other: return "Other";
case MVT::i1: return "i1";
@@ -62,12 +61,11 @@ std::string getEnumName(MVT::ValueType T) {
}
std::ostream &operator<<(std::ostream &OS, MVT::ValueType T) {
std::ostream &llvm::operator<<(std::ostream &OS, MVT::ValueType T) {
return OS << getName(T);
}
/// getTarget - Return the current instance of the Target class.
///
CodeGenTarget::CodeGenTarget() : PointerType(MVT::Other) {
@@ -99,4 +97,3 @@ Record *CodeGenTarget::getInstructionSet() const {
return TargetRec->getValueAsDef("InstructionSet");
}
} // End llvm namespace