aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Linker/LinkModules.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-12-01 23:06:26 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-12-01 23:06:26 +0000
commitaf714765e6876e96b69b19475f8ce4a172e136e9 (patch)
tree98df6deaa85474d0084d27e9b7a499560c80387c /llvm/lib/Linker/LinkModules.cpp
parentc1c674c60b6d60d9292e4baca4546ca949255671 (diff)
downloadllvm-af714765e6876e96b69b19475f8ce4a172e136e9.zip
llvm-af714765e6876e96b69b19475f8ce4a172e136e9.tar.gz
llvm-af714765e6876e96b69b19475f8ce4a172e136e9.tar.bz2
Use default member initializers.
llvm-svn: 254473
Diffstat (limited to 'llvm/lib/Linker/LinkModules.cpp')
-rw-r--r--llvm/lib/Linker/LinkModules.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/Linker/LinkModules.cpp b/llvm/lib/Linker/LinkModules.cpp
index 9401022..39ab5db 100644
--- a/llvm/lib/Linker/LinkModules.cpp
+++ b/llvm/lib/Linker/LinkModules.cpp
@@ -412,12 +412,12 @@ class ModuleLinker {
/// from this source module, in which case we must conservatively assume
/// that any of its functions may be imported into another module
/// as part of a different backend compilation process.
- bool HasExportedFunctions;
+ bool HasExportedFunctions = false;
/// Set to true when all global value body linking is complete (including
/// lazy linking). Used to prevent metadata linking from creating new
/// references.
- bool DoneLinkingBodies;
+ bool DoneLinkingBodies = false;
bool HasError = false;
@@ -428,8 +428,7 @@ public:
Function *FuncToImport = nullptr)
: DstM(DstM), SrcM(SrcM), TypeMap(Set), ValMaterializer(this),
DiagnosticHandler(DiagnosticHandler), Flags(Flags), ImportIndex(Index),
- ImportFunction(FuncToImport), HasExportedFunctions(false),
- DoneLinkingBodies(false) {
+ ImportFunction(FuncToImport) {
assert((ImportIndex || !ImportFunction) &&
"Expect a FunctionInfoIndex when importing");
// If we have a FunctionInfoIndex but no function to import,