1 // SPDX-License-Identifier: GPL-2.0 1 // SPDX-License-Identifier: GPL-2.0 2 #include "llvm/Support/ManagedStatic.h" 2 #include "llvm/Support/ManagedStatic.h" 3 #include "llvm/Support/raw_ostream.h" 3 #include "llvm/Support/raw_ostream.h" 4 4 5 #if LLVM_VERSION_MAJOR < 13 5 #if LLVM_VERSION_MAJOR < 13 6 # error "Perf requires llvm-devel/llvm-dev ver 6 # error "Perf requires llvm-devel/llvm-dev version 13 or greater" 7 #endif 7 #endif 8 8 9 int main() 9 int main() 10 { 10 { 11 llvm::errs() << "Hello World!\n"; 11 llvm::errs() << "Hello World!\n"; 12 llvm::llvm_shutdown(); 12 llvm::llvm_shutdown(); 13 return 0; 13 return 0; 14 } 14 } 15 15
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.