diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2010-10-08 21:50:04 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2010-10-08 21:50:04 +0000 |
commit | fc3642b2053bd0d0772851307dde9e68ebbd8c6d (patch) | |
tree | 43b8eb7749d8c03270df2f58c6d6aa5ce690b63a /llvm/lib/CodeGen | |
parent | c43c930690b854b016ba667416956f96a0103204 (diff) | |
download | bcm5719-llvm-fc3642b2053bd0d0772851307dde9e68ebbd8c6d.tar.gz bcm5719-llvm-fc3642b2053bd0d0772851307dde9e68ebbd8c6d.zip |
Do not check that the bodies of two defs of same linkonce global are the same.
Such a check does not make any sense in presense of inlining and other compiler-dependent stuff.
This should fix bunch of warnings on mingw32.
llvm-svn: 116113
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp index 4afdc3ddef5..164ee37263c 100644 --- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp +++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp @@ -1008,7 +1008,7 @@ SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, Characteristics |= COFF::IMAGE_SCN_LNK_COMDAT; return getContext().getCOFFSection(Name.str(), Characteristics, - COFF::IMAGE_COMDAT_SELECT_EXACT_MATCH, Kind); + COFF::IMAGE_COMDAT_SELECT_ANY, Kind); } if (Kind.isText()) |