1 #include "llvm/Support/ManagedStatic.h" 2 #include "llvm/Support/raw_ostream.h" 3 #define NUM_VERSION (((LLVM_VERSION_MAJOR) << 16) + (LLVM_VERSION_MINOR << 8) + LLVM_VERSION_PATCH) 4 5 #if NUM_VERSION < 0x030900 6 # error "LLVM version too low" 7 #endif 8 int main() 9 { 10 llvm::errs() << "Hello World!\n"; 11 llvm::llvm_shutdown(); 12 return 0; 13 } 14