Haven't yet found a nice way to handle TargetData verification in the
authorLang Hames <lhames@gmail.com>
Thu, 20 Oct 2011 19:24:44 +0000 (19:24 +0000)
committerLang Hames <lhames@gmail.com>
Thu, 20 Oct 2011 19:24:44 +0000 (19:24 +0000)
commit1dda3d511e19918c4487e9d5a45eb5856284494e
tree8a4dc4f12280fd85d51eb561a954bb84c9e5d5b4
parente65177f965063c16321166c13d90a91aa57b5ee8
Haven't yet found a nice way to handle TargetData verification in the
AsmParser. This patch adds validation for target data layout strings upon
construction of TargetData objects. An attempt to construct a TargetData object
from a malformed string will trigger an assertion.

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