aboutsummaryrefslogtreecommitdiff
path: root/lib/clang
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2016-08-20 18:45:25 +0000
committerDimitry Andric <dim@FreeBSD.org>2016-08-20 18:45:25 +0000
commit9228435a16d5e7283889317090558188c016a7db (patch)
tree2045dfb293c9595f4a1371e745c08e2190e3ba7e /lib/clang
parent0c6be7628936c0007279d22d1c2538054ef59168 (diff)
downloadsrc-9228435a16d5e7283889317090558188c016a7db.tar.gz
src-9228435a16d5e7283889317090558188c016a7db.zip
Update build glue for lldb. Also comment out parts of the
initialization and termination code which reference plugins and components that we don't use.
Notes
Notes: svn path=/projects/clang390-import/; revision=304536
Diffstat (limited to 'lib/clang')
-rw-r--r--lib/clang/Makefile5
-rw-r--r--lib/clang/liblldbAPI/Makefile6
-rw-r--r--lib/clang/liblldbCore/Makefile6
-rw-r--r--lib/clang/liblldbExpression/Makefile1
-rw-r--r--lib/clang/liblldbHostCommon/Makefile11
-rw-r--r--lib/clang/liblldbHostPOSIX/Makefile1
-rw-r--r--lib/clang/liblldbInterpreter/Makefile5
-rw-r--r--lib/clang/liblldbPluginCPlusPlusLanguage/Makefile (renamed from lib/clang/liblldbPluginLanguageCPlusPlus/Makefile)12
-rw-r--r--lib/clang/liblldbPluginCPlusPlusLanguage/Makefile.depend (renamed from lib/clang/liblldbPluginLanguageCPlusPlus/Makefile.depend)0
-rw-r--r--lib/clang/liblldbPluginExpressionParserClang/Makefile1
-rw-r--r--lib/clang/liblldbPluginObjCLanguage/Makefile (renamed from lib/clang/liblldbPluginLanguageObjC/Makefile)2
-rw-r--r--lib/clang/liblldbPluginObjCLanguage/Makefile.depend (renamed from lib/clang/liblldbPluginLanguageObjC/Makefile.depend)0
-rw-r--r--lib/clang/liblldbPluginProcessElfCore/Makefile6
-rw-r--r--lib/clang/liblldbPluginProcessFreeBSD/Makefile2
-rw-r--r--lib/clang/liblldbPluginProcessUtility/Makefile4
-rw-r--r--lib/clang/liblldbPluginSymbolFileDWARF/Makefile14
-rw-r--r--lib/clang/liblldbPluginSymbolFilePDB/Makefile18
-rw-r--r--lib/clang/liblldbSymbol/Makefile9
18 files changed, 70 insertions, 33 deletions
diff --git a/lib/clang/Makefile b/lib/clang/Makefile
index 45ba333a89f4..71d72c125162 100644
--- a/lib/clang/Makefile
+++ b/lib/clang/Makefile
@@ -150,6 +150,7 @@ SUBDIR+=liblldb \
liblldbPluginABISysV_ppc \
liblldbPluginABISysV_ppc64 \
liblldbPluginABISysV_x86_64 \
+ liblldbPluginCPlusPlusLanguage \
liblldbPluginCXXItaniumABI \
liblldbPluginDisassemblerLLVM \
liblldbPluginDynamicLoaderStatic \
@@ -162,9 +163,8 @@ SUBDIR+=liblldb \
liblldbPluginInstructionMIPS64 \
liblldbPluginInstrumentationRuntimeAddressSanitizer \
liblldbPluginJITLoaderGDB \
- liblldbPluginLanguageCPlusPlus \
- liblldbPluginLanguageObjC \
liblldbPluginMemoryHistoryASan \
+ liblldbPluginObjCLanguage \
liblldbPluginObjectContainerBSDArchive \
liblldbPluginObjectFileELF \
liblldbPluginObjectFileJIT \
@@ -177,6 +177,7 @@ SUBDIR+=liblldb \
liblldbPluginProcessUtility \
liblldbPluginScriptInterpreterNone \
liblldbPluginSymbolFileDWARF \
+ liblldbPluginSymbolFilePDB \
liblldbPluginSymbolFileSymtab \
liblldbPluginSymbolVendorELF \
liblldbPluginUnwindAssemblyInstEmulation \
diff --git a/lib/clang/liblldbAPI/Makefile b/lib/clang/liblldbAPI/Makefile
index 0ecf54a4b65c..354b01ef33f8 100644
--- a/lib/clang/liblldbAPI/Makefile
+++ b/lib/clang/liblldbAPI/Makefile
@@ -33,6 +33,8 @@ SRCS= SBAddress.cpp \
SBLaunchInfo.cpp \
SBLineEntry.cpp \
SBListener.cpp \
+ SBMemoryRegionInfo.cpp \
+ SBMemoryRegionInfoList.cpp \
SBModule.cpp \
SBModuleSpec.cpp \
SBPlatform.cpp \
@@ -47,9 +49,9 @@ SRCS= SBAddress.cpp \
SBSymbolContext.cpp \
SBSymbolContextList.cpp \
SBTarget.cpp \
+ SBThread.cpp \
SBThreadCollection.cpp \
SBThreadPlan.cpp \
- SBThread.cpp \
SBType.cpp \
SBTypeCategory.cpp \
SBTypeEnumMember.cpp \
@@ -60,8 +62,8 @@ SRCS= SBAddress.cpp \
SBTypeSynthetic.cpp \
SBUnixSignals.cpp \
SBValue.cpp \
- SBVariablesOptions.cpp \
SBValueList.cpp \
+ SBVariablesOptions.cpp \
SBWatchpoint.cpp \
SystemInitializerFull.cpp
diff --git a/lib/clang/liblldbCore/Makefile b/lib/clang/liblldbCore/Makefile
index 2c81bd4b93c2..3b83a0434644 100644
--- a/lib/clang/liblldbCore/Makefile
+++ b/lib/clang/liblldbCore/Makefile
@@ -60,9 +60,10 @@ SRCS= Address.cpp \
StringList.cpp \
StructuredData.cpp \
Timer.cpp \
+ UUID.cpp \
UserID.cpp \
UserSettingsController.cpp \
- UUID.cpp \
+ VMRange.cpp \
Value.cpp \
ValueObject.cpp \
ValueObjectCast.cpp \
@@ -76,8 +77,7 @@ SRCS= Address.cpp \
ValueObjectMemory.cpp \
ValueObjectRegister.cpp \
ValueObjectSyntheticFilter.cpp \
- ValueObjectVariable.cpp \
- VMRange.cpp
+ ValueObjectVariable.cpp
TGHDRS= AttrList \
Attrs \
diff --git a/lib/clang/liblldbExpression/Makefile b/lib/clang/liblldbExpression/Makefile
index af6635d2a856..cf105c4a7d12 100644
--- a/lib/clang/liblldbExpression/Makefile
+++ b/lib/clang/liblldbExpression/Makefile
@@ -6,6 +6,7 @@ LIB= lldbExpression
SRCDIR= tools/lldb/source/Expression
SRCS= DWARFExpression.cpp \
+ DiagnosticManager.cpp \
Expression.cpp \
ExpressionSourceCode.cpp \
ExpressionVariable.cpp \
diff --git a/lib/clang/liblldbHostCommon/Makefile b/lib/clang/liblldbHostCommon/Makefile
index 706ea1f8f0ab..8393310ec409 100644
--- a/lib/clang/liblldbHostCommon/Makefile
+++ b/lib/clang/liblldbHostCommon/Makefile
@@ -8,6 +8,7 @@ SRCDIR= tools/lldb/source/Host/common
SRCS= Condition.cpp \
Editline.cpp \
File.cpp \
+ FileCache.cpp \
FileSpec.cpp \
FileSystem.cpp \
GetOptInc.cpp \
@@ -20,7 +21,13 @@ SRCS= Condition.cpp \
LockFileBase.cpp \
MonitoringProcessLauncher.cpp \
Mutex.cpp \
+ NativeBreakpoint.cpp \
+ NativeBreakpointList.cpp \
+ NativeProcessProtocol.cpp \
NativeRegisterContext.cpp \
+ NativeRegisterContextRegisterInfo.cpp \
+ NativeThreadProtocol.cpp \
+ NativeWatchpointList.cpp \
OptionParser.cpp \
PipeBase.cpp \
ProcessRunLock.cpp \
@@ -34,8 +41,8 @@ SRCS= Condition.cpp \
ThisThread.cpp \
ThreadLauncher.cpp \
TimeValue.cpp \
- XML.cpp \
- UDPSocket.cpp
+ UDPSocket.cpp \
+ XML.cpp
TGHDRS= AttrList \
Attrs \
diff --git a/lib/clang/liblldbHostPOSIX/Makefile b/lib/clang/liblldbHostPOSIX/Makefile
index d6e275c19b8a..e83ed7099c28 100644
--- a/lib/clang/liblldbHostPOSIX/Makefile
+++ b/lib/clang/liblldbHostPOSIX/Makefile
@@ -12,6 +12,7 @@ SRCS= ConnectionFileDescriptorPosix.cpp \
HostProcessPosix.cpp \
HostThreadPosix.cpp \
LockFilePosix.cpp \
+ MainLoopPosix.cpp \
PipePosix.cpp \
ProcessLauncherPosix.cpp
diff --git a/lib/clang/liblldbInterpreter/Makefile b/lib/clang/liblldbInterpreter/Makefile
index cf7d28e381ad..d0a71784a26b 100644
--- a/lib/clang/liblldbInterpreter/Makefile
+++ b/lib/clang/liblldbInterpreter/Makefile
@@ -6,6 +6,7 @@ LIB= lldbInterpreter
SRCDIR= tools/lldb/source/Interpreter
SRCS= Args.cpp \
+ CommandAlias.cpp \
CommandHistory.cpp \
CommandInterpreter.cpp \
CommandObject.cpp \
@@ -23,6 +24,8 @@ SRCS= Args.cpp \
OptionGroupUInt64.cpp \
OptionGroupUUID.cpp \
OptionGroupValueObjectDisplay.cpp \
+ OptionGroupVariable.cpp \
+ OptionGroupWatchpoint.cpp \
OptionValue.cpp \
OptionValueArch.cpp \
OptionValueArgs.cpp \
@@ -43,8 +46,6 @@ SRCS= Args.cpp \
OptionValueString.cpp \
OptionValueUInt64.cpp \
OptionValueUUID.cpp \
- OptionGroupVariable.cpp \
- OptionGroupWatchpoint.cpp \
Options.cpp \
Property.cpp \
ScriptInterpreter.cpp
diff --git a/lib/clang/liblldbPluginLanguageCPlusPlus/Makefile b/lib/clang/liblldbPluginCPlusPlusLanguage/Makefile
index 6382609eb484..817578c8e43f 100644
--- a/lib/clang/liblldbPluginLanguageCPlusPlus/Makefile
+++ b/lib/clang/liblldbPluginCPlusPlusLanguage/Makefile
@@ -2,12 +2,14 @@
.include <bsd.own.mk>
-LIB= lldbPluginLanguageCPlusPlus
+LIB= lldbPluginCPlusPlusLanguage
-SRCDIR= tools/lldb/source/Plugins/Language/CPlusPlus/
-SRCS= CPlusPlusLanguage.cpp \
+SRCDIR= tools/lldb/source/Plugins/Language/CPlusPlus
+SRCS= BlockPointer.cpp \
+ CPlusPlusLanguage.cpp \
CxxStringTypes.cpp \
LibCxx.cpp \
+ LibCxxAtomic.cpp \
LibCxxInitializerList.cpp \
LibCxxList.cpp \
LibCxxMap.cpp \
@@ -15,7 +17,9 @@ SRCS= CPlusPlusLanguage.cpp \
LibCxxVector.cpp \
LibStdcpp.cpp
-TGHDRS= CommentCommandList \
+TGHDRS= AttrList \
+ Attrs \
+ CommentCommandList \
DeclNodes \
DiagnosticCommonKinds \
StmtNodes
diff --git a/lib/clang/liblldbPluginLanguageCPlusPlus/Makefile.depend b/lib/clang/liblldbPluginCPlusPlusLanguage/Makefile.depend
index 264ede1c30ce..264ede1c30ce 100644
--- a/lib/clang/liblldbPluginLanguageCPlusPlus/Makefile.depend
+++ b/lib/clang/liblldbPluginCPlusPlusLanguage/Makefile.depend
diff --git a/lib/clang/liblldbPluginExpressionParserClang/Makefile b/lib/clang/liblldbPluginExpressionParserClang/Makefile
index 2f27613cabe5..b3958cf7cc1e 100644
--- a/lib/clang/liblldbPluginExpressionParserClang/Makefile
+++ b/lib/clang/liblldbPluginExpressionParserClang/Makefile
@@ -25,6 +25,7 @@ TGHDRS= Attributes \
Attrs \
CommentCommandList \
DeclNodes \
+ DiagnosticASTKinds \
DiagnosticCommonKinds \
DiagnosticFrontendKinds \
DiagnosticSemaKinds \
diff --git a/lib/clang/liblldbPluginLanguageObjC/Makefile b/lib/clang/liblldbPluginObjCLanguage/Makefile
index 8653e75e3e8e..40b3cdebe637 100644
--- a/lib/clang/liblldbPluginLanguageObjC/Makefile
+++ b/lib/clang/liblldbPluginObjCLanguage/Makefile
@@ -2,7 +2,7 @@
.include <bsd.own.mk>
-LIB= lldbPluginLanguageObjC
+LIB= lldbPluginObjCLanguage
SRCDIR= tools/lldb/source/Plugins/Language/ObjC/
SRCS= CF.cpp \
diff --git a/lib/clang/liblldbPluginLanguageObjC/Makefile.depend b/lib/clang/liblldbPluginObjCLanguage/Makefile.depend
index 264ede1c30ce..264ede1c30ce 100644
--- a/lib/clang/liblldbPluginLanguageObjC/Makefile.depend
+++ b/lib/clang/liblldbPluginObjCLanguage/Makefile.depend
diff --git a/lib/clang/liblldbPluginProcessElfCore/Makefile b/lib/clang/liblldbPluginProcessElfCore/Makefile
index e8fc69875c66..e77053403aa1 100644
--- a/lib/clang/liblldbPluginProcessElfCore/Makefile
+++ b/lib/clang/liblldbPluginProcessElfCore/Makefile
@@ -9,13 +9,13 @@ CFLAGS+=-I${.CURDIR}/../../../contrib/llvm/tools/lldb/source/Plugins/Process/Uti
SRCDIR= tools/lldb/source/Plugins/Process/elf-core
SRCS= ProcessElfCore.cpp \
- ThreadElfCore.cpp \
RegisterContextPOSIXCore_arm.cpp \
RegisterContextPOSIXCore_arm64.cpp \
RegisterContextPOSIXCore_mips64.cpp \
RegisterContextPOSIXCore_powerpc.cpp \
- RegisterContextPOSIXCore_x86_64.cpp
-
+ RegisterContextPOSIXCore_x86_64.cpp \
+ ThreadElfCore.cpp
+
TGHDRS= DiagnosticCommonKinds \
DeclNodes \
StmtNodes \
diff --git a/lib/clang/liblldbPluginProcessFreeBSD/Makefile b/lib/clang/liblldbPluginProcessFreeBSD/Makefile
index d9444eefb984..037d97639d17 100644
--- a/lib/clang/liblldbPluginProcessFreeBSD/Makefile
+++ b/lib/clang/liblldbPluginProcessFreeBSD/Makefile
@@ -11,9 +11,9 @@ CFLAGS+=-I${.CURDIR}/../../../contrib/llvm/tools/lldb/source/Plugins/Process/Uti
SRCDIR= tools/lldb/source/Plugins/Process/FreeBSD
SRCS= FreeBSDThread.cpp \
+ POSIXStopInfo.cpp \
ProcessFreeBSD.cpp \
ProcessMonitor.cpp \
- POSIXStopInfo.cpp \
RegisterContextPOSIXProcessMonitor_arm.cpp \
RegisterContextPOSIXProcessMonitor_arm64.cpp \
RegisterContextPOSIXProcessMonitor_mips64.cpp \
diff --git a/lib/clang/liblldbPluginProcessUtility/Makefile b/lib/clang/liblldbPluginProcessUtility/Makefile
index 4a5e340fc467..8e7af94bd760 100644
--- a/lib/clang/liblldbPluginProcessUtility/Makefile
+++ b/lib/clang/liblldbPluginProcessUtility/Makefile
@@ -26,16 +26,16 @@ SRCS= DynamicRegisterInfo.cpp \
RegisterContextFreeBSD_powerpc.cpp \
RegisterContextFreeBSD_x86_64.cpp \
RegisterContextHistory.cpp \
+ RegisterContextLLDB.cpp \
RegisterContextLinux_arm.cpp \
RegisterContextLinux_arm64.cpp \
RegisterContextLinux_i386.cpp \
RegisterContextLinux_mips.cpp \
RegisterContextLinux_x86_64.cpp \
- RegisterContextLLDB.cpp \
+ RegisterContextMacOSXFrameBackchain.cpp \
RegisterContextMach_arm.cpp \
RegisterContextMach_i386.cpp \
RegisterContextMach_x86_64.cpp \
- RegisterContextMacOSXFrameBackchain.cpp \
RegisterContextMemory.cpp \
RegisterContextPOSIX_arm.cpp \
RegisterContextPOSIX_arm64.cpp \
diff --git a/lib/clang/liblldbPluginSymbolFileDWARF/Makefile b/lib/clang/liblldbPluginSymbolFileDWARF/Makefile
index 0d2409e70ee9..8a73597d84e1 100644
--- a/lib/clang/liblldbPluginSymbolFileDWARF/Makefile
+++ b/lib/clang/liblldbPluginSymbolFileDWARF/Makefile
@@ -6,35 +6,35 @@ LIB= lldbPluginSymbolFileDWARF
SRCDIR= tools/lldb/source/Plugins/SymbolFile/DWARF
SRCS= DIERef.cpp \
- DWARFAbbreviationDeclaration.cpp \
DWARFASTParserClang.cpp \
DWARFASTParserGo.cpp \
+ DWARFAbbreviationDeclaration.cpp \
DWARFAttribute.cpp \
DWARFCompileUnit.cpp \
+ DWARFDIE.cpp \
+ DWARFDIECollection.cpp \
DWARFDataExtractor.cpp \
DWARFDebugAbbrev.cpp \
- DWARFDebugAranges.cpp \
DWARFDebugArangeSet.cpp \
+ DWARFDebugAranges.cpp \
DWARFDebugInfo.cpp \
DWARFDebugInfoEntry.cpp \
- DWARFDebugMacro.cpp \
DWARFDebugLine.cpp \
DWARFDebugMacinfo.cpp \
DWARFDebugMacinfoEntry.cpp \
+ DWARFDebugMacro.cpp \
DWARFDebugPubnames.cpp \
DWARFDebugPubnamesSet.cpp \
DWARFDebugRanges.cpp \
DWARFDeclContext.cpp \
DWARFDefines.cpp \
- DWARFDIE.cpp \
- DWARFDIECollection.cpp \
DWARFFormValue.cpp \
- LogChannelDWARF.cpp \
HashedNameToDIE.cpp \
+ LogChannelDWARF.cpp \
NameToDIE.cpp \
SymbolFileDWARF.cpp \
- SymbolFileDWARFDwo.cpp \
SymbolFileDWARFDebugMap.cpp \
+ SymbolFileDWARFDwo.cpp \
UniqueDWARFASTType.cpp
TGHDRS= AttrList \
diff --git a/lib/clang/liblldbPluginSymbolFilePDB/Makefile b/lib/clang/liblldbPluginSymbolFilePDB/Makefile
new file mode 100644
index 000000000000..6b952a96dec8
--- /dev/null
+++ b/lib/clang/liblldbPluginSymbolFilePDB/Makefile
@@ -0,0 +1,18 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+LIB= lldbPluginSymbolFilePDB
+
+SRCDIR= tools/lldb/source/Plugins/SymbolFile/PDB
+SRCS= PDBASTParser.cpp \
+ SymbolFilePDB.cpp
+
+TGHDRS= AttrList \
+ Attrs \
+ CommentCommandList \
+ DeclNodes \
+ DiagnosticCommonKinds \
+ StmtNodes
+
+.include "../lldb.lib.mk"
diff --git a/lib/clang/liblldbSymbol/Makefile b/lib/clang/liblldbSymbol/Makefile
index 0cc7a75a5052..05f74c519b5f 100644
--- a/lib/clang/liblldbSymbol/Makefile
+++ b/lib/clang/liblldbSymbol/Makefile
@@ -11,16 +11,17 @@ SRCS= ArmUnwindInfo.cpp \
ClangASTImporter.cpp \
ClangExternalASTSourceCallbacks.cpp \
ClangExternalASTSourceCommon.cpp \
+ ClangUtil.cpp \
+ CompactUnwindInfo.cpp \
+ CompileUnit.cpp \
CompilerDecl.cpp \
CompilerDeclContext.cpp \
CompilerType.cpp \
- CompactUnwindInfo.cpp \
+ DWARFCallFrameInfo.cpp \
DebugMacros.cpp \
- CompileUnit.cpp \
Declaration.cpp \
- DWARFCallFrameInfo.cpp \
- Function.cpp \
FuncUnwinders.cpp \
+ Function.cpp \
GoASTContext.cpp \
LineEntry.cpp \
LineTable.cpp \