Greg Clayton
49bd1c847b
Added Symtab::FindSymbolByID() in preparation for enabling the minimal
...
symbol tables. Minimal symbol tables enable us to merge two symbols, one
debug symbol and one linker symbol, into a single symbol that can carry
just as much information and will avoid duplicate symbols in the symbol
table.
llvm-svn: 113223
2010-09-07 17:36:17 +00:00
Greg Clayton
471b31ce62
Remove use of STL collection class use of the "data()" method since it isn't
...
part of C++'98. Most of these were "std::vector<T>::data()" and
"std::string::data()".
llvm-svn: 108957
2010-07-20 22:52:08 +00:00
Greg Clayton
044672b076
Logic fix to properly determine when a symbol is not from the current
...
symbol table (from William Lynch).
llvm-svn: 108871
2010-07-20 18:30:17 +00:00
Owen Anderson
836af6bb36
Fix comment, per Chris' suggestion.
...
llvm-svn: 106192
2010-06-17 00:51:12 +00:00
Owen Anderson
c7da5f413b
Switch from qsort_r to std::stable_sort for a performance win and improved portability.
...
llvm-svn: 106116
2010-06-16 17:34:05 +00:00
Owen Anderson
571e864e84
Revert my previous patch. Apparently the code-size impact of std::sort isn't acceptable.
...
llvm-svn: 105835
2010-06-11 21:07:26 +00:00
Owen Anderson
dc433611a2
Replace qsort_r with std::sort. This gets rid of a lot of portability
...
ickiness, and is cleaner to boot.
I'm fairly confident that I converted the comparator over properly,
and what testing I could figure out how to run seemed to pass, but it
would be great if someone in the know could check behind me.
llvm-svn: 105834
2010-06-11 20:52:57 +00:00
Greg Clayton
ae5680be64
Fixed an issue where a return value wasn't being returned from Symtab::CompareSymbolValueByIndexLinux.
...
llvm-svn: 105802
2010-06-11 00:51:46 +00:00
Eli Friedman
a92e332b09
Make qsort_r usage "portable". Why does a function which seems so simple
...
have to be so complicated?
llvm-svn: 105797
2010-06-10 23:36:31 +00:00
Chris Lattner
30fdc8d841
Initial checkin of lldb code from internal Apple repo.
...
llvm-svn: 105619
2010-06-08 16:52:24 +00:00