aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Support/TargetRegistry.h
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2012-02-21 03:39:36 +0000
committerChandler Carruth <chandlerc@gmail.com>2012-02-21 03:39:36 +0000
commit124e51c0d2b521b0fb3aaaf2443403cd451b7857 (patch)
treee698a2f26a96b4e06e1c43c5161f782f97d933ec /include/llvm/Support/TargetRegistry.h
parent4b04578d65e38cdb5077de2498889e4a174ccdfd (diff)
downloadexternal_llvm-124e51c0d2b521b0fb3aaaf2443403cd451b7857.zip
external_llvm-124e51c0d2b521b0fb3aaaf2443403cd451b7857.tar.gz
external_llvm-124e51c0d2b521b0fb3aaaf2443403cd451b7857.tar.bz2
Switch the llvm::Triple class to immediately parse the triple string on
construction. Simplify its interface, implementation, and users accordingly as there is no longer an 'uninitialized' state to check for. Also, fixes a bug lurking in the interface as there was one method that didn't correctly check for initialization. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151024 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/TargetRegistry.h')
-rw-r--r--include/llvm/Support/TargetRegistry.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/TargetRegistry.h b/include/llvm/Support/TargetRegistry.h
index ea55c91..aef43b1 100644
--- a/include/llvm/Support/TargetRegistry.h
+++ b/include/llvm/Support/TargetRegistry.h
@@ -786,7 +786,7 @@ namespace llvm {
/// extern "C" void LLVMInitializeFooTargetInfo() {
/// RegisterTarget<Triple::foo> X(TheFooTarget, "foo", "Foo description");
/// }
- template<Triple::ArchType TargetArchType = Triple::InvalidArch,
+ template<Triple::ArchType TargetArchType = Triple::UnknownArch,
bool HasJIT = false>
struct RegisterTarget {
RegisterTarget(Target &T, const char *Name, const char *Desc) {