change getQualifiedName to be a global function.

Split the pattern parsing code out from the dag isel emitter into it's own file.

No functionality change.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45632 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2008-01-05 22:25:12 +00:00
parent 219f67f0a5
commit 6cefb77a70
9 changed files with 2772 additions and 2678 deletions
+11
View File
@@ -106,6 +106,17 @@ std::string llvm::getEnumName(MVT::ValueType T) {
}
}
/// getQualifiedName - Return the name of the specified record, with a
/// namespace qualifier if the record contains one.
///
std::string llvm::getQualifiedName(const Record *R) {
std::string Namespace = R->getValueAsString("Namespace");
if (Namespace.empty()) return R->getName();
return Namespace + "::" + R->getName();
}
/// getTarget - Return the current instance of the Target class.
///