HomePhabricator

[ADT] Add llvm::StringLiteral.

Authored by zturner on Dec 13 2016, 9:03 AM.

Description

[ADT] Add llvm::StringLiteral.

StringLiteral is a wrapper around a string literal useful for
replacing global tables of char arrays with global tables of
StringRefs that can initialized in a constexpr context, avoiding
the invocation of a global constructor.

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

llvm-svn: 289551

Details

Committed
zturnerDec 13 2016, 9:03 AM
Differential Revision
D27686: Add llvm::StringLiteral
Parents
rG09d5daab49a0: Refactor duplicated expression. NFC.
Branches
Unknown
Tags
Unknown