OSDN Git Service

Hash Metadata using pointer for MDString argument instead of value (NFC)
authorMehdi Amini <mehdi.amini@apple.com>
Sat, 19 Mar 2016 01:02:34 +0000 (01:02 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Sat, 19 Mar 2016 01:02:34 +0000 (01:02 +0000)
commitbef5d7af6bc8cf89cabdd1e7a8107ade423a594a
treef27f8f8319a6f2757f82198843272749f1f3b84d
parent343753f293ed6021a3ca13b8affcdf14c8439b59
Hash Metadata using pointer for MDString argument instead of value (NFC)

MDString are uniqued in the Context on creation, hashing the
pointer is less expensive than hashing the String itself.

Reviewers: dexonsmith
Differential Revision: http://reviews.llvm.org/D16560

From: Mehdi Amini <mehdi.amini@apple.com>

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