search for: thex86_32target

Displaying 2 results from an estimated 2 matches for "thex86_32target".

2014 Jan 06
2
[LLVMdev] Why do X86_32TargetMachine and X86_64TargetMachine classes exist?
...ine.cpp +++ b/lib/Target/X86/X86TargetMachine.cpp @@ -24,8 +24,9 @@ using namespace llvm; extern "C" void LLVMInitializeX86Target() { // Register the target. + RegisterTargetMachine<X86_32TargetMachine> W(TheX86_16Target); RegisterTargetMachine<X86_32TargetMachine> X(TheX86_32Target); - RegisterTargetMachine<X86_64TargetMachine> Y(TheX86_64Target); + RegisterTargetMachine<X86_32TargetMachine> Y(TheX86_64Target); } @@ -74,7 +75,7 @@ X86_32TargetMachine::X86_32TargetMachine(const Target &T, Stri const TargetOptions &am...
2010 Jun 21
2
[LLVMdev] MC: Object file specific parsing
...Ctx, Out, MAI); + default: + return new X86_64ATTMachOAsmParser(T, Src, Ctx, Out, MAI); + } +} extern "C" void LLVMInitializeX86AsmLexer(); // Force static initialization. extern "C" void LLVMInitializeX86AsmParser() { - RegisterAsmParser<X86_32ATTAsmParser> X(TheX86_32Target); - RegisterAsmParser<X86_64ATTAsmParser> Y(TheX86_64Target); + // Register the asm parser. + TargetRegistry::RegisterAsmParser(TheX86_32Target, createX86_32AsmParser); + TargetRegistry::RegisterAsmParser(TheX86_64Target, createX86_64AsmParser); LLVMInitializeX86AsmLexer(); } diff -...