- Oct 15, 2015
-
-
Rui Ueyama authored
If an argument for --entry is a number, that's not a symbol name but an absolute address. If that's the case, the address is directly set to ELF header's e_entry. llvm-svn: 250334
-
Chris Bieneman authored
CMake's set command overwrites existing values. Package maintainers may want or need to set the version variables manually, so we need to only set them if they are not already defined. Note I use the "if(NOT DEFINED ...)" syntax deliberately in the last case because empty string is a valid value for the suffx, but not the other variables. llvm-svn: 250333
-
Sanjay Patel authored
llvm-svn: 250332
-
Zachary Turner authored
Most platforms have "/dev/null". Windows has "nul". Instead of hardcoding the string /dev/null at various places, make a constant that contains the correct value depending on the platform, and use that everywhere instead. llvm-svn: 250331
-
Rui Ueyama authored
llvm-svn: 250330
-
Eric Fiselier authored
llvm-svn: 250329
-
Rui Ueyama authored
These accessors didn't provide any additional value over a public member variable, too. llvm-svn: 250328
-
Zachary Turner authored
There were a couple of issues related to string handling that needed to be fixed. In particular, we cannot get away with converting `PyUnicode` objects to `PyBytes` objects and storing the `PyBytes` regardless of Python version. Instead we have to store a `PyUnicode` on Python 3 and a `PyString` on Python 2. The reason for this is that if you call `PyObject_Str` on a `PyBytes` in Python 3, it will return you a string that actually contains the string value wrappedin the characters b''. So if we create a `PythonString` with the value "test", and we call Str() on it, we will get back the string "b'test'", which breaks string equality. The only way to fix this is to store a native `PyUnicode` object under Python 3. With this CL, ScriptInterpreterPythonTests unit tests pass 100% under Python 2 and Python 3. llvm-svn: 250327
-
Rui Ueyama authored
These accessors didn't provide any additional value over a public member variable. llvm-svn: 250326
-
Eric Fiselier authored
llvm-svn: 250325
-
Bill Schmidt authored
PR25157 identifies a bug where a load plus a vector shuffle is incorrectly converted into an LXVDSX instruction. That optimization is only valid if the load is of a doubleword, and in the noted case, it was not. This corrects that problem. Joint patch with Eric Schweitz, who provided the bugpoint-reduced test case. llvm-svn: 250324
-
Eric Fiselier authored
llvm-svn: 250323
-
Stephane Sezer authored
llvm-svn: 250322
-
Davide Italiano authored
We now use clang by default and fallback to gcc when requested. With this commit, names reflect reality. No functional change intended. Discussed with: Rafael Espindola. llvm-svn: 250321
-
Daniel Berlin authored
Summary: IDFCalculator used a DominatorTree instance for its calculations. Since the PostDominatorTree struct is not a subclass of DominatorTree, it wasn't possible to use PDT in IDFCalculator to compute post-dominance frontiers. This patch makes IDFCalculator work with a DominatorTreeBase<BasicBlock> instead, which enables PDTs to be utilized. Patch by Victor Campos (vhscampos@gmail.com) Reviewers: dberlin Subscribers: dberlin, llvm-commits Differential Revision: http://reviews.llvm.org/D13725 llvm-svn: 250320
-
Eric Fiselier authored
Summary: Currently on most platforms you have to manually link the c++ abi library used with libc++ whenever you use libc++. So your typical libc++ command like invocation might look like: ``` clang++ -stdlib=libc++ foo.cpp -lc++abi ``` Having to manually link `libc++abi.so` makes it harder for libc++ to be used generically. This patch fixes that by generating a linker script for `libc++.so` that correctly links the ABI library. On linux the linker script for libc++abi would look like: ``` # libc++.so INPUT(libc++.so.1 -lc++abi) ``` With the linker script you can now use libc++ using only `-stdlib=libc++`. This is the technique that is used on FreeBSD in ordered to link cxxrt and I think it's the best approach to make our users lives simpler. The CMake option used to enable this is `LIBCXX_ENABLE_ABI_LINKER_SCRIPT`. In future I would like to enable this by default on all platforms except for Darwin. Reviewers: mclow.lists, danalbert, rsmith, jroelofs, EricWF Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D12508 llvm-svn: 250319
-
Davide Italiano authored
We now rely on gcc only if either of the following is true: 1) -gcc option is passed by the user 2) clang is not found in the default path. Differential Revision: http://reviews.llvm.org/D13642 llvm-svn: 250318
-
Chen Li authored
Reviewers: reames Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D13738 llvm-svn: 250317
-
Eric Fiselier authored
llvm-svn: 250316
-
Rui Ueyama authored
Previously, we used input section names as output section names. That resulted that we created lots of sections for comdat or -f{function,data}-section sections. This patch reduces the number of sections by dropping suffix from all section names which start with ".text.", ".rodata.", ".data." or ".bss.". GNU linker does this using the internal linker script, but for LLD I chose to do that directly. Interestingly, this makes the linker faster. Time to link Clang is this. Before: real 0m0.537s user 0m0.433s sys 0m0.104s After: real 0m0.390s user 0m0.268s sys 0m0.120s It make sense because previously we created 57659 sections now only 27. llvm-svn: 250315 -
Arch D. Robison authored
llvm-svn: 250314
-
Eric Fiselier authored
llvm-svn: 250313
-
Eric Fiselier authored
llvm-svn: 250312
-
Rafael Espindola authored
llvm-svn: 250311
-
Diego Novillo authored
There's been some changes to the text encoding for sample profiles. This updates the documentation and an example. llvm-svn: 250310
-
Diego Novillo authored
This adds documentation for the binary profile encoding and moves the documentation for the text encoding into the header file SampleProfReader.h. llvm-svn: 250309
-
Eric Fiselier authored
Summary: This patch changes the tests to use the "__config_site" header if present instead of manually configuring for each option. This patch also removes the test flags for configuring some of these options. For example "lit -sv --param=enable_threads=OFF" no longer works. However lit will still correctly configure if the CMake option "-DLIBCXX_ENABLE_THREADS=OFF" is given at build time. This patch will fix the libc++abi test configuration for `LIBCXX_ABI_VERSION` and `LIBCXX_ABI_UNSTABLE` one we teach it about 'project_obj_dir' . I would like to land this ASAP to prevent more work blockage. Reviewers: mclow.lists, danalbert, eugenis, ed, jroelofs Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D13714 llvm-svn: 250308
-
Eric Fiselier authored
llvm-svn: 250307
-
Zachary Turner authored
Python 3 reverses the order in which you must call Py_InitializeEx and PyEval_InitThreads. Since that log is in itself already a little nuanced, it is refactored into a function so that the reversal is more clear. At the same time, there's a lot of logic during Python initialization to save off a bunch of state and then restore it after initialization is complete. To express this more cleanly, it is refactored to an RAII-style pattern where state is saved off on acquisition and restored on release. llvm-svn: 250306
-
Artyom Skrobov authored
Summary: Caching SDLoc(N), instead of recreating it in every single function call, keeps the code denser, and allows to unwrap long lines. Reviewers: sunfish, atrick, sdmitrouk Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D13726 llvm-svn: 250305
-
Zachary Turner authored
Added a constructor that takes list_size for `PythonList`. Made all single-argument constructors explicit. Re-ordered constructors to be consistent with other classes. llvm-svn: 250304
-
Zachary Turner authored
llvm-svn: 250303
-
Artyom Skrobov authored
Summary: The two implementations had more code in common than not. Reviewers: sunfish, MatzeB, sdmitrouk Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D13724 llvm-svn: 250302
-
Hans Wennborg authored
llvm-svn: 250301
-
Rafael Espindola authored
This can show up with a non-PIC .o being linked into an executable that uses shared libraries. llvm-svn: 250300
-
- Oct 14, 2015
-
-
Todd Fiala authored
cmake: provide flag that enables 'log enable --stack' to provide useful file/function info on POSIX systems Adding the following flag to a cmake line: -DLLDB_EXPORT_ALL_SYMBOLS=TRUE will cause all symbols to be exported from liblldb. This enables the llvm backtrace mechanism to see and report backtrace symbols properly when using (lldb) log enable --stack ... Prior to this change, only the SB API symbols would show up on Linux and other systems that use a public-symbols-based backtrace lookup mechanism. log enable --stack ... is a very handy, quick way to understand the flow of how some log lines are getting hit within lldb without having to hook up a top-level debugger over your current debug session. llvm-svn: 250299
-
Filipe Cabecinhas authored
Make sure we're matching what we want: - Always have -generate-arange-section (independent of -g) - Emit a -dwarf-version=... when -g is there. llvm-svn: 250298
-
Simon Atanasyan authored
- Make the `MipsTargetInfo` template class with `ELFType` argument. Use the argument to select an appropriate relocation type and read/write routines. - Add template function `add32` to add-and-write relocation value in both big and little endian cases. Keep the `add32le` to reduce code changes. Differential Revision: http://reviews.llvm.org/D13723 llvm-svn: 250297
-
Rui Ueyama authored
llvm-svn: 250296
-
Pavel Labath authored
Summary: This commit adds support for binary memory reads ($x) to lldb-server. It also removes the "0x" prefix from the $x client packet, to make it more compatible with the old $m packet. This allows us to use almost the same code for handling both packet types. I have verified that debugserver correctly handles $x packets even without the leading "0x". I have added a test which verifies that the stub returns the same memory contents for both kinds of memory reads ($x and $m). Reviewers: tberghammer, jasonmolenda Subscribers: iancottrell, lldb-commits Differential Revision: http://reviews.llvm.org/D13695 llvm-svn: 250295
-