- Mar 07, 2013
-
-
Nadav Rotem authored
llvm-svn: 176615
-
Jim Grosbach authored
Just scalarize the element and rebuild a vector of the result type from that. rdar://13281568 llvm-svn: 176614
-
Greg Clayton authored
"compile_units" returns an array of all compile units in a module as a list() of lldb.SBCompileUnit objects. "compile_unit" returns a compile unit accessor object that allows indexed access, search by full or partial path, or by regex: (lldb) script comp_unit = lldb.target.module['TextEdit'].compile_unit['Document.m'] comp_unit = lldb.target.module['TextEdit'].compile_unit['/path/to/Document.m'] comp_unit = lldb.target.module['TextEdit'].compile_unit[0] comp_unit = lldb.target.module['TextEdit'].compile_unit[1] for comp_unit in lldb.target.module['TextEdit'].compile_unit[re.compile("\.m$")] print comp_unit This helps do quick searches and scripting while debugging. llvm-svn: 176613
-
Anna Zaks authored
Warn about null pointer dereference earlier when a reference to a null pointer is passed in a call. The idea is that even though the standard might allow this, reporting the issue earlier is better for diagnostics (the error is reported closer to the place where the pointer was set to NULL). This also simplifies analyzer’s diagnostic logic, which has to track “where the null came from”. As a consequence, some of our null pointer warning suppression mechanisms started triggering more often. TODO: Change the name of the file and class to reflect the new check. llvm-svn: 176612
-
Greg Clayton authored
Stop the "module" property from throwing an exception when the module name was not found in the target module list. llvm-svn: 176611
-
Greg Clayton authored
Added a new module that can dump all line tables for all compile units in any modules that are specified as arguments to the "dump_module_line_tables" command. I used this to verify that the debug map line tables were the same as previous LLDB releases prior to my change in the DWARF in .o file linking. llvm-svn: 176610
-
Rafael Espindola authored
llvm-svn: 176609
-
Nick Lewycky authored
is the one that should be used. llvm-svn: 176608
-
Rafael Espindola authored
llvm-svn: 176607
-
Rafael Espindola authored
It is possible that some of the current uses of "getStorageClassAsWritten() == SC_Extern" should use this but I don't know enough about SC_PrivateExtern to change and test them. llvm-svn: 176606
-
Manman Ren authored
We now emit a line table for each compile unit. To reduce the prologue size of each line table, the files and directories used by each compile unit are stored in std::map<unsigned, std::vector< > > instead of std::vector< >. The prologue for a lto'ed image can be as big as 93K. Duplicating 93K for each compile unit causes a huge increase of debug info. With this patch, each prologue will only emit the files required by the compile unit. rdar://problem/13342023 llvm-svn: 176605
-
Nadav Rotem authored
llvm-svn: 176604
-
Rafael Espindola authored
llvm-svn: 176603
-
Nadav Rotem authored
llvm-svn: 176602
-
Jordan Rose authored
Officially in the C++ standard, a null reference cannot exist. However, it's still very easy to create one: int &getNullRef() { int *p = 0; return *p; } We already check that binds to reference regions don't create null references. This patch checks that we don't create null references by returning, either. <rdar://problem/13364378> llvm-svn: 176601
-
Jordan Rose authored
No functionality change. llvm-svn: 176600
-
Andrew Trick authored
Fixes rdar:13349374. Volatile loads and stores need to be preserved even if the language standard says they are undefined. "volatile" in this context means "get out of the way compiler, let my platform handle it". Additionally, this is the only way I know of with llvm to write to the first page (when hardware allows) without dropping to assembly. llvm-svn: 176599
-
Michael Liao authored
- Phi nodes should be replaced/updated after lowering CMOV into branch because 'mainMBB' updating operand in Phi node is changed. - Add EFLAGS in livein before lowering the 2nd CMOV. It's necessary as we will reuse the EFLAGS generated before the 1st lowered CMOV, which won't clobber EFLAGS. However, we need explicitly specify that. - '-attr=-cmov' test case are added. llvm-svn: 176598
-
Daniel Malea authored
- remove "-debug" flag from swig scripts - use "echo -n" instead of "echo" in dummy target to avoid printing a useless newline llvm-svn: 176597
-
Daniel Malea authored
- Avoid passing 'ccache' as the test compiler. Instead, use first arg after ccache. llvm-svn: 176596
-
Daniel Malea authored
- missing definitions were causing different definitions of type 'off_t', resulting in linker errors - fix is to define _LARGEFILE_SOURCE and _FILE_OFFSET_BITS=64 llvm-svn: 176595
-
rdar://problem/13119170Han Ming Ong authored
Reap the child process (debugserver) when it is done. llvm-svn: 176594
-
Howard Hinnant authored
No functionality change at this time. I've split _LIBCPP_VISIBLE up into two flags: _LIBCPP_TYPE_VIS and _LIBCPP_FUNC_VIS. This is in preparation for taking advantage of clang's new __type_visibility__ attribute. llvm-svn: 176593
-
rdar://problem/13362109Greg Clayton authored
LLDB was not parsing line tables correctly for DWARF in .o files after recent debug map changes. This has now been fixed. llvm-svn: 176592
-
Jason Molenda authored
Noticed these while working on the last commit. llvm-svn: 176590
-
Jason Molenda authored
Retrieve the dyld shared cache mapping offset from the shared cache instead of hardcoding the value. Read the version number of the dyld shared cache. <rdar://problem/13311882> llvm-svn: 176589
-
- Mar 06, 2013
-
-
Adrian Prantl authored
that adds ivars to an interface. Fixes rdar://13175234 This is an update to r176116 that performs a smart caching of interfaces. llvm-svn: 176584
-
Shankar Easwaran authored
llvm-svn: 176583
-
Andrew Kaylor authored
The test was marked as expectedFailureLinux, but now it passes with gcc and some versions of clang. Newer versions of clang introduce a failure due to bad DWARF information. llvm-svn: 176581
-
Akira Hatanaka authored
In N64-static, GOT address is needed to compute the branch address. llvm-svn: 176580
-
Greg Clayton authored
llvm-svn: 176579
-
Andrew Kaylor authored
llvm-svn: 176578
-
Anna Zaks authored
This allows us to trigger the IDC visitor in the added test case. llvm-svn: 176577
-
Anna Zaks authored
[analyzer] IDC: Add config option; perform the idc check on first “null node” rather than last “non-null”. The second modification does not lead to any visible result, but, theoretically, is what we should have been looking at to begin with since we are checking if the node was assumed to be null in an inlined function. llvm-svn: 176576
-
Sean Callanan authored
make it more obvious what's going on. llvm-svn: 176575
-
Andrew Kaylor authored
llvm-svn: 176574
-
Howard Hinnant authored
Have basic_istream::read call sgetn intead of sbumpc individual characters. This addresses http://llvm.org/bugs/show_bug.cgi?id=15427. llvm-svn: 176573
-
Andrew Trick authored
Always print options that differ from their implicit default. At least for simple option types. llvm-svn: 176572
-
Michael Liao authored
llvm-svn: 176570
-
Andrew Trick authored
This way, clang -mllvm -print-options shows that the driver is overriding it. llvm-svn: 176569
-