summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/Language.cpp
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2015-09-30 23:12:22 +0000
committerEnrico Granata <egranata@apple.com>2015-09-30 23:12:22 +0000
commit6754e04f6d9474c918371982e4c88d987adc9ff4 (patch)
treea5fce8bb9166e79da25bc5e03f51e308a3eba156 /lldb/source/Target/Language.cpp
parent6dec87a8a08b715a63347f595ecab0318b6564ea (diff)
downloadbcm5719-llvm-6754e04f6d9474c918371982e4c88d987adc9ff4.tar.gz
bcm5719-llvm-6754e04f6d9474c918371982e4c88d987adc9ff4.zip
Introudce a IsTopLevelFunction() API on Language and Function
This is meant to support languages that have a scripting mode with top-level code that acts as global For now, this flag only controls whether 'frame variable' will attempt to treat globals as locals when within such a function llvm-svn: 248960
Diffstat (limited to 'lldb/source/Target/Language.cpp')
-rw-r--r--lldb/source/Target/Language.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/source/Target/Language.cpp b/lldb/source/Target/Language.cpp
index 13d843441e7..02b36519b13 100644
--- a/lldb/source/Target/Language.cpp
+++ b/lldb/source/Target/Language.cpp
@@ -89,6 +89,12 @@ Language::ForEach (std::function<bool(Language*)> callback)
}
}
+bool
+Language::IsTopLevelFunction (Function& function)
+{
+ return false;
+}
+
lldb::TypeCategoryImplSP
Language::GetFormatters ()
{
OpenPOWER on IntegriCloud