1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00
llvm-mirror/lib
Rafael Espindola 2c7e9b8d27 Always pass a diagnostic handler to the linker.
Before this patch the diagnostic handler was optional. If it was not
passed, the one in the LLVMContext was used.

That is probably not a pattern we want to follow. If each area has an
optional callback, there is a sea of callbacks and it is hard to follow
which one is called.

Doing this also found cases where the callback is a nice addition, like
testing that no errors or warnings are reported.

The other option is to always use the diagnostic handler in the
LLVMContext. That has a few problems

* To implement the C API we would have to set the diag handler and then
  set it back to the original value.
* Code that creates the context might be far away from code that wants
  the diagnostics.

I do have a patch that implements the second option and will send that as
an RFC.

llvm-svn: 254777
2015-12-04 22:08:53 +00:00
..
Analysis [Analysis] Become aware of MSVC's new/delete functions 2015-12-03 22:45:19 +00:00
AsmParser [CXX TLS calling convention] Add CXX TLS calling convention. 2015-12-04 17:40:13 +00:00
Bitcode Remove "ExportingModule" from ThinLTO Index (NFC) 2015-12-03 02:37:23 +00:00
CodeGen ScheduleDAGInstrs: Move LiveIntervals field to ScheduleDAGMI 2015-12-04 19:54:24 +00:00
DebugInfo [llvm-dwp] Retrieve the DWOID from the CU for the cu_index entry 2015-12-04 17:20:04 +00:00
ExecutionEngine [Orc] Rename JITCompileCallbackManagerBase to JITCompileCallbackManager. 2015-12-04 02:15:39 +00:00
Fuzzer Libfuzzer: do not pass null into user function 2015-12-02 22:43:53 +00:00
IR [OperandBundles] Allow operand-specific attributes in operand bundles 2015-12-04 20:34:37 +00:00
IRReader Return a unique_ptr from getLazyBitcodeModule and parseBitcodeFile. NFC. 2015-06-16 22:27:55 +00:00
LibDriver [Option] Use an ArrayRef to store the Option Infos in OptTable. NFC 2015-10-21 16:30:42 +00:00
LineEditor
Linker Always pass a diagnostic handler to the linker. 2015-12-04 22:08:53 +00:00
LTO Always pass a diagnostic handler to the linker. 2015-12-04 22:08:53 +00:00
MC MC: Make sure to clear *all* of MCMachOStreamer's state 2015-12-03 00:52:20 +00:00
Object Remove "ExportingModule" from ThinLTO Index (NFC) 2015-12-03 02:37:23 +00:00
Option [Option] Use an ArrayRef to store the Option Infos in OptTable. NFC 2015-10-21 16:30:42 +00:00
Passes [PM] Port StripDeadPrototypes to the new pass manager 2015-10-30 23:28:12 +00:00
ProfileData Revert "[llvm-profdata] Add support for weighted merge of profile data" 2015-12-04 02:13:58 +00:00
Support Revert "raw_ostream: << operator for callables with raw_stream argument" 2015-12-03 23:00:28 +00:00
TableGen [TblGen] ArrayRefize TGParser. No functional change intended. 2015-10-24 12:46:45 +00:00
Target [AArch64] Expand vector SDIVREM/UDIVREM operations. 2015-12-04 21:38:44 +00:00
Transforms [SimplifyLibCalls] Optimization for pow(x, n) where n is some constant 2015-12-04 22:00:47 +00:00
CMakeLists.txt LibDriver, llvm-lib: introduce. 2015-06-09 21:50:22 +00:00
LLVMBuild.txt Wrap some long lines in LLVMBuild files. NFC 2015-06-12 18:44:57 +00:00
Makefile LibDriver, llvm-lib: introduce. 2015-06-09 21:50:22 +00:00