X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FLinker%2FLinker.h;h=c43b90e9cd2638aece501fef86cc25dd86ab2735;hb=00552e3875ee5f382db6c98286a241a7d0efe1b8;hp=aac9dcdcb36bb6bc932018f33e27d8980404a21d;hpb=bd26e6a0065dc21fd15eec02497ceb9b962849b5;p=oota-llvm.git diff --git a/include/llvm/Linker/Linker.h b/include/llvm/Linker/Linker.h index aac9dcdcb36..c43b90e9cd2 100644 --- a/include/llvm/Linker/Linker.h +++ b/include/llvm/Linker/Linker.h @@ -54,6 +54,7 @@ public: NonOpaqueStructTypeSet NonOpaqueStructTypes; void addNonOpaque(StructType *Ty); + void switchToNonOpaque(StructType *Ty); void addOpaque(StructType *Ty); StructType *findNonOpaque(ArrayRef ETypes, bool IsPacked); bool hasType(StructType *Ty); @@ -67,8 +68,10 @@ public: void deleteModule(); /// \brief Link \p Src into the composite. The source is destroyed. + /// Passing OverrideSymbols as true will have symbols from Src + /// shadow those in the Dest. /// Returns true on error. - bool linkInModule(Module *Src); + bool linkInModule(Module *Src, bool OverrideSymbols = false); /// \brief Set the composite to the passed-in module. void setModule(Module *Dst);