Adding a new option to CMake to disable C++ atexit on llvm-shlib.
[oota-llvm.git] / tools / llvm-shlib / libllvm.cpp
1 //===-libllvm.cpp - LLVM Shared Library -----------------------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file is empty and serves only the purpose of making CMake happy because
11 // you can't define a target with no sources.
12 //
13 //===----------------------------------------------------------------------===//
14
15 #include "llvm/Config/config.h"
16
17 #if defined(DISABLE_LLVM_DYLIB_ATEXIT)
18 extern "C" int __cxa_atexit();
19 extern "C" int __cxa_atexit() { return 0; }
20 #endif