[llvm-commits] [llvm] r91973 - /llvm/trunk/lib/Target/X86/Disassembler/X86DisassemblerDecoder.h
Chris Lattner
clattner at apple.com
Tue Dec 22 18:00:03 PST 2009
On Dec 22, 2009, at 5:55 PM, Sean Callanan wrote:
> Chris, Anton,
>
> I tried static functions but they don't work because the compiler
> warns about unused functions in files that #include the header but
> don't call the functions. As an alternative, I could simply move
> the functions into the file that uses them and declare them static
> thereā¦ is that preferable?
>
> The reason I wrote this portion of the disassembler in C is to allow
> projects that need a disassembler but reside (for example) in a
> kernel or some other source base that does not allow C++ to use the
> disassembler core.
The mac kernel (at least) includes a large set of C++ code (in
IOKit). They generally just don't allow the exact same stuff that
LLVM doesn't allow: RTTI and exceptions.
-Chris
More information about the llvm-commits
mailing list