mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-26 23:29:22 +00:00
The system API's will be shifted over to returning an error_code, and returning other return values as out parameters to the function. Code that needs to check error conditions will use the errc enum values which are the same as the posix_errno defines (EBADF, E2BIG, etc...), and are compatable with the error codes in WinError.h due to some magic in system_error. An example would be: if (error_code ec = KillEvil("Java")) { // error_code can be converted to bool. handle_error(ec); } git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119360 91177308-0d34-0410-b5e6-96231b3b80d8
53 lines
920 B
CMake
53 lines
920 B
CMake
set(LLVM_REQUIRES_RTTI 1)
|
|
if( MINGW )
|
|
set(LLVM_REQUIRES_EH 1)
|
|
endif()
|
|
|
|
add_llvm_library(LLVMSystem
|
|
Alarm.cpp
|
|
Atomic.cpp
|
|
Disassembler.cpp
|
|
DynamicLibrary.cpp
|
|
Errno.cpp
|
|
Host.cpp
|
|
IncludeFile.cpp
|
|
Memory.cpp
|
|
Mutex.cpp
|
|
Path.cpp
|
|
Process.cpp
|
|
Program.cpp
|
|
RWMutex.cpp
|
|
SearchForAddressOfSpecialSymbol.cpp
|
|
Signals.cpp
|
|
system_error.cpp
|
|
ThreadLocal.cpp
|
|
Threading.cpp
|
|
TimeValue.cpp
|
|
Valgrind.cpp
|
|
Unix/Alarm.inc
|
|
Unix/Host.inc
|
|
Unix/Memory.inc
|
|
Unix/Mutex.inc
|
|
Unix/Path.inc
|
|
Unix/Process.inc
|
|
Unix/Program.inc
|
|
Unix/RWMutex.inc
|
|
Unix/Signals.inc
|
|
Unix/system_error.inc
|
|
Unix/ThreadLocal.inc
|
|
Unix/TimeValue.inc
|
|
Win32/Alarm.inc
|
|
Win32/DynamicLibrary.inc
|
|
Win32/Host.inc
|
|
Win32/Memory.inc
|
|
Win32/Mutex.inc
|
|
Win32/Path.inc
|
|
Win32/Process.inc
|
|
Win32/Program.inc
|
|
Win32/RWMutex.inc
|
|
Win32/Signals.inc
|
|
Win32/system_error.inc
|
|
Win32/ThreadLocal.inc
|
|
Win32/TimeValue.inc
|
|
)
|