search for: iscygwin

Displaying 5 results from an estimated 5 matches for "iscygwin".

2009 Jul 15
1
[LLVMdev] How do I generate a Dwarf file?
Hello, Does anyone know how to generate a Dwarf file for a Windows target? I discovered the DwarfWriter class, but I'm not sure how to add it to the pass manager. Also, what x86 subtarget should I use? From what I can tell, there are five choices: isELF, isDarwin, isCygwin, isMingw, and isWindows. isCygwin and isMingw appear to generate a COFF file in X86TargetMachine.cpp, but that seems unlikely because I don't see a COFF writer in the source code. The fifth choice, isWindows, appears to be the default Windows option that generates no debugging information. A...
2006 Apr 29
3
[LLVMdev] Building LLVM under Mingw. Part I: tools-only
...in such way, that declaration of CopyFile will look like: void CopyFile(const sys::Path &Dest, const sys::Path &Src) { 2.3 X86 stuff Patch lib/Target/X86/X86SubTarget.cpp & X86JITInfo.cpp in such way: X86SubTarget.cpp: #if defined(__CYGWIN__) || defined(__MINGW32__) TargetType = isCygwin; #elif defined(__APPLE__) TargetType = isDarwin; #elif defined(_WIN32) TargetType = isWindows; #endif X86JITInfo.cpp: #if defined(__CYGWIN__) || defined(__APPLE__) || defined(__MINGW32__) ".globl _X86CompilationCallback\n" "_X86CompilationCallback:\n" #else ... #i...
2005 Jul 11
0
[LLVMdev] Mod for using GAS with MS VC++
...s, I think it will. :) In particular, instead of a bunch of checks based on the target, what we really want is something like this: ... in the AsmPrinter ctor... if (isDarwin) { TargetUsesFooFeature = true; TargetUsesBarFeature = true; TargetUsesBazFeature = false; } else if (isCygwin) { ... } etc. Then instead of code that looks like this: if (!forCygwin && !forDarwin && !forWindows && I->hasInternalLinkage()) O << "\t.local " << name << "\n"; We would have: if (TargetUsesSymbolsMarkedLocal &a...
2005 Jul 11
3
[LLVMdev] Mod for using GAS with MS VC++
Here is a mod to X86 that allows GAS to be used with MS Visual C++. I introduces a 'forWindows' variable like 'forCygwin' in th X86SharedAsmPrinter class. This may prompt thurther normalization, on the otherhand it may not :) Aaron -------------- next part -------------- An HTML attachment was scrubbed... URL:
2005 Jul 11
2
[LLVMdev] Mod for using GAS with MS VC++
...icular, instead of a bunch of checks > based on the target, what we really want is something like this: > > ... in the AsmPrinter ctor... > if (isDarwin) { > TargetUsesFooFeature = true; > TargetUsesBarFeature = true; > TargetUsesBazFeature = false; > } else if (isCygwin) { > ... > } > etc. > > Then instead of code that looks like this: > > if (!forCygwin && !forDarwin && !forWindows && I->hasInternalLinkage()) > O << "\t.local " << name << "\n"; > > We would ha...