[llvm-commits] [llvm] r104317 - /llvm/trunk/lib/Target/X86/X86AsmBackend.cpp
Matt Fleming
matt at console-pimps.org
Fri May 21 04:39:07 PDT 2010
Author: mfleming
Date: Fri May 21 06:39:07 2010
New Revision: 104317
URL: http://llvm.org/viewvc/llvm-project?rev=104317&view=rev
Log:
Split out the x86_32 an x86_64 ELF backends as they handle ELF
differently. This will make adding ELF support easier in the long run.
Modified:
llvm/trunk/lib/Target/X86/X86AsmBackend.cpp
Modified: llvm/trunk/lib/Target/X86/X86AsmBackend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86AsmBackend.cpp?rev=104317&r1=104316&r2=104317&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86AsmBackend.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86AsmBackend.cpp Fri May 21 06:39:07 2010
@@ -212,6 +212,18 @@
}
};
+class ELFX86_32AsmBackend : public ELFX86AsmBackend {
+public:
+ ELFX86_32AsmBackend(const Target &T)
+ : ELFX86AsmBackend(T) {}
+};
+
+class ELFX86_64AsmBackend : public ELFX86AsmBackend {
+public:
+ ELFX86_64AsmBackend(const Target &T)
+ : ELFX86AsmBackend(T) {}
+};
+
class DarwinX86AsmBackend : public X86AsmBackend {
public:
DarwinX86AsmBackend(const Target &T)
@@ -291,7 +303,7 @@
case Triple::Darwin:
return new DarwinX86_32AsmBackend(T);
default:
- return new ELFX86AsmBackend(T);
+ return new ELFX86_32AsmBackend(T);
}
}
@@ -301,6 +313,6 @@
case Triple::Darwin:
return new DarwinX86_64AsmBackend(T);
default:
- return new ELFX86AsmBackend(T);
+ return new ELFX86_64AsmBackend(T);
}
}
More information about the llvm-commits
mailing list