1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- #pragma once
- #ifdef __GNUC__
- #pragma GCC diagnostic push
- #pragma GCC diagnostic ignored "-Wunused-parameter"
- #endif
- #ifndef LLVM_LINKALLIR_H
- #define LLVM_LINKALLIR_H
- #include "llvm/BinaryFormat/Dwarf.h"
- #include "llvm/IR/InlineAsm.h"
- #include "llvm/IR/Instructions.h"
- #include "llvm/IR/LLVMContext.h"
- #include "llvm/IR/Module.h"
- #include "llvm/IR/Verifier.h"
- #include "llvm/Support/DynamicLibrary.h"
- #include "llvm/Support/MathExtras.h"
- #include "llvm/Support/Memory.h"
- #include "llvm/Support/Mutex.h"
- #include "llvm/Support/Path.h"
- #include "llvm/Support/Process.h"
- #include "llvm/Support/Program.h"
- #include "llvm/Support/Signals.h"
- #include <cstdlib>
- namespace {
- struct ForceVMCoreLinking {
- ForceVMCoreLinking() {
-
-
-
-
-
-
-
- if (std::getenv("bar") != (char*) -1)
- return;
- llvm::LLVMContext Context;
- (void)new llvm::Module("", Context);
- (void)new llvm::UnreachableInst(Context);
- (void) llvm::createVerifierPass();
- }
- } ForceVMCoreLinking;
- }
- #endif
- #ifdef __GNUC__
- #pragma GCC diagnostic pop
- #endif
|