diff options
author | Reid Kleckner <rnk@google.com> | 2015-12-05 01:52:14 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2015-12-05 01:52:14 +0000 |
commit | 953fe0367b46c75ff8e79cbac3384bae71586ffe (patch) | |
tree | a489aea57732c3d068383f9306af82d869d31aa5 /clang/lib/CodeGen/CodeGenModule.h | |
parent | da7ffc25dd3ee39bb6ef8f11d14ee4080a181fc5 (diff) | |
download | llvm-953fe0367b46c75ff8e79cbac3384bae71586ffe.zip llvm-953fe0367b46c75ff8e79cbac3384bae71586ffe.tar.gz llvm-953fe0367b46c75ff8e79cbac3384bae71586ffe.tar.bz2 |
Revert "[x86] Exclusion of incorrect include headers paths for MCU target"
This reverts commit r254195.
From the description, I suspect that the wrong patch was committed here,
and this is causing assertion failures in EmitDeferred() when the global
value ends up being a bitcast of a global.
llvm-svn: 254823
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index d1a3efb..cede404 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -700,8 +700,7 @@ public: /// with the specified type instead of whatever the normal requested type /// would be. llvm::Constant *GetAddrOfGlobalVar(const VarDecl *D, - llvm::Type *Ty = nullptr, - bool IsForDefinition = false); + llvm::Type *Ty = nullptr); /// Return the address of the given function. If Ty is non-null, then this /// function will use the specified type if it has to create it. @@ -1130,8 +1129,7 @@ private: llvm::Constant *GetOrCreateLLVMGlobal(StringRef MangledName, llvm::PointerType *PTy, - const VarDecl *D, - bool IsForDefinition = false); + const VarDecl *D); void setNonAliasAttributes(const Decl *D, llvm::GlobalObject *GO); @@ -1142,7 +1140,7 @@ private: void EmitGlobalDefinition(GlobalDecl D, llvm::GlobalValue *GV = nullptr); void EmitGlobalFunctionDefinition(GlobalDecl GD, llvm::GlobalValue *GV); - void EmitGlobalVarDefinition(const VarDecl *D, bool IsTentative = false); + void EmitGlobalVarDefinition(const VarDecl *D); void EmitAliasDefinition(GlobalDecl GD); void EmitObjCPropertyImplementations(const ObjCImplementationDecl *D); void EmitObjCIvarInitializations(ObjCImplementationDecl *D); |