[LLVMdev] Headers & Libraries
Alkis Evlogimenos
alkis at evlogimenos.com
Fri Nov 14 12:06:01 PST 2003
Just a comment on llvm headers. We currently use:
#include "llvm/Codegen/LiveVariables.h"
which causes an extra unnecessary lookup to compared to:
#include <llvm/Codegen/LiveVariables.h>
because it looks for the header file in the directory of the source file it
includes it first before looking at the rest of the include path. Of course
the header will never be there since the full path is specified.
#include "" should only be used when headers are specified using relative
paths. In our case the majority of header inclusions (if not all) use
relative paths so we may want to consider either converting all our #include
"" to #include <> or change header file inclusions to use relative paths. I
don't see any advantages of one over the other but what we have today is not
strictly correct :-)
--
Alkis
More information about the llvm-dev
mailing list