[llvm-branch-commits] [llvm-branch] r104360 - /llvm/branches/Apple/whitney/lib/Target/X86/X86AsmBackend.cpp
Daniel Dunbar
daniel at zuster.org
Fri May 21 12:07:00 PDT 2010
Author: ddunbar
Date: Fri May 21 14:07:00 2010
New Revision: 104360
URL: http://llvm.org/viewvc/llvm-project?rev=104360&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/branches/Apple/whitney/lib/Target/X86/X86AsmBackend.cpp
Modified: llvm/branches/Apple/whitney/lib/Target/X86/X86AsmBackend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/whitney/lib/Target/X86/X86AsmBackend.cpp?rev=104360&r1=104359&r2=104360&view=diff
==============================================================================
--- llvm/branches/Apple/whitney/lib/Target/X86/X86AsmBackend.cpp (original)
+++ llvm/branches/Apple/whitney/lib/Target/X86/X86AsmBackend.cpp Fri May 21 14:07:00 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-branch-commits
mailing list