[LLVMdev] LLVM namespace

Brian R. Gaeke gaeke at uiuc.edu
Tue Nov 11 16:54:01 PST 2003


Hi,

All LLVM code has been moved into the 'llvm' namespace, as discussed
here:   http://llvm.cs.uiuc.edu/PR109

Big thanks go out to Reid Spencer, rspencer -at- x10sys.com, for taking
care of this task for us!

If you're working out of the LLVM CVS repository, you should get these
changes when you next update from CVS.

This change should make it easier in the long run to integrate outside C++ code
into the LLVM system, by avoiding spurious conflicts between symbols from
outside projects that happen to have the same names as LLVM classes or
global functions.

You may have to add a 'using namespace llvm;' directive to the beginning
of your code to make it possible for your code to access LLVM classes,
or alternatively prefix your references to names in the LLVM namespace
with 'llvm::', as in 'llvm::Type', 'llvm::Instruction', etc.

If you have questions, please don't hesitate to ask one of us.

-Brian Gaeke
for the People's Republic of 3118

-- 
gaeke at uiuc.edu



More information about the llvm-dev mailing list