[cfe-dev] Big Clang DLL, plug-in mechanism revision

Anton Korobeynikov anton at korobeynikov.info
Thu May 5 00:29:27 PDT 2011


Hello John,

> 2. A new "LLVMCommon.h" file is added to the include/llvm directory under
> the root to define "LLVM_EXPORT" and "LLVM_IMPORT" macros that wrap the
> Visual C++ "__declspec(dllexport)" and "__declspec(dllimport)" directives,
> as well as to define the "LLVMCORE_LINKAGE" macro. This file will be
> included by all the "(moduleName)Common.h" files for the LLVM components.
This looks really ugly and error-prone. I believe that people will
forgot to add these linkage macros while adding new classes.
Maybe there is some alternative way of exporting the stuff?

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the cfe-dev mailing list