diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2003-10-10 21:55:29 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2003-10-10 21:55:29 +0000 |
commit | be7f4afe47ef87f2f6b054ea472d03719c5eb22e (patch) | |
tree | 8cb9d92ab64fe066a79a1d92905cbffa9de5b136 | |
parent | ce0ea77e605c60a1ff4403ce1cfb468edaf41d38 (diff) | |
download | external_llvm-be7f4afe47ef87f2f6b054ea472d03719c5eb22e.zip external_llvm-be7f4afe47ef87f2f6b054ea472d03719c5eb22e.tar.gz external_llvm-be7f4afe47ef87f2f6b054ea472d03719c5eb22e.tar.bz2 |
This seems to work around some unobvious bug in gcc on sparc which was
causing the build of lib/Target/X86 to fail.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9042 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | utils/TableGen/CodeGenTarget.cpp | 2 | ||||
-rw-r--r-- | utils/TableGen/CodeGenWrappers.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/utils/TableGen/CodeGenTarget.cpp b/utils/TableGen/CodeGenTarget.cpp index 61c3abc..d1e0e87 100644 --- a/utils/TableGen/CodeGenTarget.cpp +++ b/utils/TableGen/CodeGenTarget.cpp @@ -61,7 +61,7 @@ std::ostream &operator<<(std::ostream &OS, MVT::ValueType T) { /// getTarget - Return the current instance of the Target class. /// -CodeGenTarget::CodeGenTarget() { +CodeGenTarget::CodeGenTarget() : PointerType(MVT::Other) { std::vector<Record*> Targets = Records.getAllDerivedDefinitions("Target"); if (Targets.size() != 1) throw std::string("ERROR: Multiple subclasses of Target defined!"); diff --git a/utils/TableGen/CodeGenWrappers.cpp b/utils/TableGen/CodeGenWrappers.cpp index 61c3abc..d1e0e87 100644 --- a/utils/TableGen/CodeGenWrappers.cpp +++ b/utils/TableGen/CodeGenWrappers.cpp @@ -61,7 +61,7 @@ std::ostream &operator<<(std::ostream &OS, MVT::ValueType T) { /// getTarget - Return the current instance of the Target class. /// -CodeGenTarget::CodeGenTarget() { +CodeGenTarget::CodeGenTarget() : PointerType(MVT::Other) { std::vector<Record*> Targets = Records.getAllDerivedDefinitions("Target"); if (Targets.size() != 1) throw std::string("ERROR: Multiple subclasses of Target defined!"); |