Skip to content
Snippets Groups Projects
Commit 96937846 authored by Brian Gaeke's avatar Brian Gaeke
Browse files

This seems to work around some unobvious bug in gcc on sparc which was

causing the build of lib/Target/X86 to fail.

llvm-svn: 9042
parent c751a493
No related branches found
No related tags found
No related merge requests found
...@@ -61,7 +61,7 @@ std::ostream &operator<<(std::ostream &OS, MVT::ValueType T) { ...@@ -61,7 +61,7 @@ std::ostream &operator<<(std::ostream &OS, MVT::ValueType T) {
/// getTarget - Return the current instance of the Target class. /// getTarget - Return the current instance of the Target class.
/// ///
CodeGenTarget::CodeGenTarget() { CodeGenTarget::CodeGenTarget() : PointerType(MVT::Other) {
std::vector<Record*> Targets = Records.getAllDerivedDefinitions("Target"); std::vector<Record*> Targets = Records.getAllDerivedDefinitions("Target");
if (Targets.size() != 1) if (Targets.size() != 1)
throw std::string("ERROR: Multiple subclasses of Target defined!"); throw std::string("ERROR: Multiple subclasses of Target defined!");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment