summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2003-10-10 21:55:29 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2003-10-10 21:55:29 +0000
commitbe7f4afe47ef87f2f6b054ea472d03719c5eb22e (patch)
tree8cb9d92ab64fe066a79a1d92905cbffa9de5b136 /utils
parentce0ea77e605c60a1ff4403ce1cfb468edaf41d38 (diff)
downloadllvm-be7f4afe47ef87f2f6b054ea472d03719c5eb22e.tar.gz
llvm-be7f4afe47ef87f2f6b054ea472d03719c5eb22e.tar.bz2
llvm-be7f4afe47ef87f2f6b054ea472d03719c5eb22e.tar.xz
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
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/CodeGenTarget.cpp2
-rw-r--r--utils/TableGen/CodeGenWrappers.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/utils/TableGen/CodeGenTarget.cpp b/utils/TableGen/CodeGenTarget.cpp
index 61c3abc297..d1e0e87ab9 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 61c3abc297..d1e0e87ab9 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!");