Introduce enum value for previously defined metadata -- make.implicit
authorChen Li <meloli87@gmail.com>
Tue, 4 Aug 2015 04:41:34 +0000 (04:41 +0000)
committerChen Li <meloli87@gmail.com>
Tue, 4 Aug 2015 04:41:34 +0000 (04:41 +0000)
commit7b3ed76a639627f66349cc128bc0505524f0f377
tree8b63fafae0ff212336149d0796c2652746840b42
parenta89971af5a6fcfa46baf13fecb83605a00b94d47
Introduce enum value for previously defined metadata -- make.implicit

Summary: This patch adds enum value for an existing metadata type -- make.implicit. Using preassigned enum will be helpful to get compile time type checking and avoid string construction and comparison. The patch also changes uses of make.implicit from string metadata to enum metadata. There is no functionality change.

Reviewers: reames

Subscribers: llvm-commits

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

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