Mercurial > hg > CbC > CbC_llvm
comparison include/llvm/LinkAllIR.h @ 148:63bd29f05246
merged
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 14 Aug 2019 19:46:37 +0900 |
parents | c2174574ed3a |
children |
comparison
equal
deleted
inserted
replaced
146:3fc4d5c3e21e | 148:63bd29f05246 |
---|---|
1 //===----- LinkAllIR.h - Reference All VMCore Code --------------*- C++ -*-===// | 1 //===----- LinkAllIR.h - Reference All VMCore Code --------------*- C++ -*-===// |
2 // | 2 // |
3 // The LLVM Compiler Infrastructure | 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
4 // | 4 // See https://llvm.org/LICENSE.txt for license information. |
5 // This file is distributed under the University of Illinois Open Source | 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
6 // License. See LICENSE.TXT for details. | |
7 // | 6 // |
8 //===----------------------------------------------------------------------===// | 7 //===----------------------------------------------------------------------===// |
9 // | 8 // |
10 // This header file pulls in all the object modules of the VMCore library so | 9 // This header file pulls in all the object modules of the VMCore library so |
11 // that tools like llc, opt, and lli can ensure they are linked with all symbols | 10 // that tools like llc, opt, and lli can ensure they are linked with all symbols |
42 if (std::getenv("bar") != (char*) -1) | 41 if (std::getenv("bar") != (char*) -1) |
43 return; | 42 return; |
44 llvm::LLVMContext Context; | 43 llvm::LLVMContext Context; |
45 (void)new llvm::Module("", Context); | 44 (void)new llvm::Module("", Context); |
46 (void)new llvm::UnreachableInst(Context); | 45 (void)new llvm::UnreachableInst(Context); |
47 (void) llvm::createVerifierPass(); | 46 (void) llvm::createVerifierPass(); |
48 } | 47 } |
49 } ForceVMCoreLinking; | 48 } ForceVMCoreLinking; |
50 } | 49 } |
51 | 50 |
52 #endif | 51 #endif |