summaryrefslogtreecommitdiffstats
path: root/lldb/source/Symbol/Symtab.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2016-08-09 23:06:08 +0000
committerZachary Turner <zturner@google.com>2016-08-09 23:06:08 +0000
commitf343968f5d87a91e020a5baf03c280ce7aa9cdb1 (patch)
tree435027dd511241ce0ff6c4791e37c87648c35697 /lldb/source/Symbol/Symtab.cpp
parentcef001aaaa679665f9ca59873ca954c161f90ca5 (diff)
downloadbcm5719-llvm-f343968f5d87a91e020a5baf03c280ce7aa9cdb1.tar.gz
bcm5719-llvm-f343968f5d87a91e020a5baf03c280ce7aa9cdb1.zip
Delete Host/windows/win32.h
It's always hard to remember when to include this file, and when you do include it it's hard to remember what preprocessor check it needs to be behind, and then you further have to remember whether it's windows.h or win32.h which you need to include. This patch changes the name to PosixApi.h, which is more appropriately named, and makes it independent of any preprocessor setting. There's still the issue of people not knowing when to include this, because there's not a well-defined set of things it exposes other than "whatever is missing on Windows", but at least this should make it less painful to fix when problems arise. This patch depends on LLVM revision r278170. llvm-svn: 278177
Diffstat (limited to 'lldb/source/Symbol/Symtab.cpp')
-rw-r--r--lldb/source/Symbol/Symtab.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/lldb/source/Symbol/Symtab.cpp b/lldb/source/Symbol/Symtab.cpp
index b11b731014d..ca88ebe9c26 100644
--- a/lldb/source/Symbol/Symtab.cpp
+++ b/lldb/source/Symbol/Symtab.cpp
@@ -264,7 +264,7 @@ Symtab::InitNameIndexes()
if (!m_name_indexes_computed)
{
m_name_indexes_computed = true;
- Timer scoped_timer (__PRETTY_FUNCTION__, "%s", __PRETTY_FUNCTION__);
+ Timer scoped_timer (LLVM_PRETTY_FUNCTION, "%s", LLVM_PRETTY_FUNCTION);
// Create the name index vector to be able to quickly search by name
const size_t num_symbols = m_symbols.size();
#if 1
@@ -471,7 +471,7 @@ Symtab::AppendSymbolNamesToMap (const IndexCollection &indexes,
{
if (add_demangled || add_mangled)
{
- Timer scoped_timer (__PRETTY_FUNCTION__, "%s", __PRETTY_FUNCTION__);
+ Timer scoped_timer (LLVM_PRETTY_FUNCTION, "%s", LLVM_PRETTY_FUNCTION);
std::lock_guard<std::recursive_mutex> guard(m_mutex);
// Create the name index vector to be able to quickly search by name
@@ -632,7 +632,7 @@ Symtab::SortSymbolIndexesByValue (std::vector<uint32_t>& indexes, bool remove_du
{
std::lock_guard<std::recursive_mutex> guard(m_mutex);
- Timer scoped_timer (__PRETTY_FUNCTION__,__PRETTY_FUNCTION__);
+ Timer scoped_timer (LLVM_PRETTY_FUNCTION,LLVM_PRETTY_FUNCTION);
// No need to sort if we have zero or one items...
if (indexes.size() <= 1)
return;
@@ -657,7 +657,7 @@ Symtab::AppendSymbolIndexesWithName (const ConstString& symbol_name, std::vector
{
std::lock_guard<std::recursive_mutex> guard(m_mutex);
- Timer scoped_timer (__PRETTY_FUNCTION__, "%s", __PRETTY_FUNCTION__);
+ Timer scoped_timer (LLVM_PRETTY_FUNCTION, "%s", LLVM_PRETTY_FUNCTION);
if (symbol_name)
{
const char *symbol_cstr = symbol_name.GetCString();
@@ -674,7 +674,7 @@ Symtab::AppendSymbolIndexesWithName (const ConstString& symbol_name, Debug symbo
{
std::lock_guard<std::recursive_mutex> guard(m_mutex);
- Timer scoped_timer (__PRETTY_FUNCTION__, "%s", __PRETTY_FUNCTION__);
+ Timer scoped_timer (LLVM_PRETTY_FUNCTION, "%s", LLVM_PRETTY_FUNCTION);
if (symbol_name)
{
const size_t old_size = indexes.size();
@@ -810,7 +810,7 @@ Symtab::FindAllSymbolsWithNameAndType (const ConstString &name, SymbolType symbo
{
std::lock_guard<std::recursive_mutex> guard(m_mutex);
- Timer scoped_timer (__PRETTY_FUNCTION__, "%s", __PRETTY_FUNCTION__);
+ Timer scoped_timer (LLVM_PRETTY_FUNCTION, "%s", LLVM_PRETTY_FUNCTION);
// Initialize all of the lookup by name indexes before converting NAME
// to a uniqued string NAME_STR below.
if (!m_name_indexes_computed)
@@ -830,7 +830,7 @@ Symtab::FindAllSymbolsWithNameAndType (const ConstString &name, SymbolType symbo
{
std::lock_guard<std::recursive_mutex> guard(m_mutex);
- Timer scoped_timer (__PRETTY_FUNCTION__, "%s", __PRETTY_FUNCTION__);
+ Timer scoped_timer (LLVM_PRETTY_FUNCTION, "%s", LLVM_PRETTY_FUNCTION);
// Initialize all of the lookup by name indexes before converting NAME
// to a uniqued string NAME_STR below.
if (!m_name_indexes_computed)
@@ -859,7 +859,7 @@ Symtab::FindFirstSymbolWithNameAndType (const ConstString &name, SymbolType symb
{
std::lock_guard<std::recursive_mutex> guard(m_mutex);
- Timer scoped_timer (__PRETTY_FUNCTION__, "%s", __PRETTY_FUNCTION__);
+ Timer scoped_timer (LLVM_PRETTY_FUNCTION, "%s", LLVM_PRETTY_FUNCTION);
if (!m_name_indexes_computed)
InitNameIndexes();
OpenPOWER on IntegriCloud