]> granicus.if.org Git - llvm/commit
[IR] Don't call assertModuleIsMaterialized in release builds
authorCraig Topper <craig.topper@gmail.com>
Fri, 13 Jan 2017 06:26:18 +0000 (06:26 +0000)
committerCraig Topper <craig.topper@gmail.com>
Fri, 13 Jan 2017 06:26:18 +0000 (06:26 +0000)
commit6ffcfe02df556f2d6e5c40c1a1eb3f99f5877489
treef3d154f48fa008f51a868ab025b904b4ed3c56b8
parente77eb6a23d69bfb175a0bfef5a081269ca8d120c
[IR] Don't call assertModuleIsMaterialized in release builds

Summary:
To fix a release vs debug build linking error, r259695 made the body of assertModuleIsMaterialized empty if Value.cpp gets compiled in a release build. This way any code compiled as a debug build can still link against a release version of the function.

This patch takes this a step farther and removes all calls to it from Value.h in any code that includes it in a relase build.

This shrinks the opt binary on my macbook build by 17240 bytes.

Reviewers: rafael

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D28191

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291883 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Value.h
lib/IR/Value.cpp