OSDN Git Service

[Bugpoint] Erase comdat annotations after removing a global's initializer.
authorJustin Lebar <jlebar@google.com>
Wed, 15 Jun 2016 23:20:12 +0000 (23:20 +0000)
committerJustin Lebar <jlebar@google.com>
Wed, 15 Jun 2016 23:20:12 +0000 (23:20 +0000)
commitb570d7112722e54f0a3e3f0fa657d72569e4b9fe
treed9a4bf46a00354c59342f0529af97cca884f4b92
parent2978728dd25804cf2202b143d94a2d645627c09d
[Bugpoint] Erase comdat annotations after removing a global's initializer.

Summary:
This is necessary to keep the verifier happy after bugpoint removes an
initializer from a global variable with a comdat annotation, because
globals without initializers may not have comdats.

Reviewers: majnemer, rnk

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D21274

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272854 91177308-0d34-0410-b5e6-96231b3b80d8
tools/bugpoint/CrashDebugger.cpp
tools/bugpoint/ExtractFunction.cpp