Format: Modernize using variadic templates.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sun, 15 Feb 2015 22:15:41 +0000 (22:15 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sun, 15 Feb 2015 22:15:41 +0000 (22:15 +0000)
commitaee01b35e4156316681a3f74042d00f701441068
tree3fecf0f5fa4073a461cef7be3a2a59977cb40618
parentd898d31ebc4de1ca54013afd28d803d84dab3aa1
Format: Modernize using variadic templates.

Introduces a subset of C++14 integer sequences in STLExtras. This is
just enough to support unpacking a std::tuple into the arguments of
snprintf, we can add more of it when it's actually needed.

Also removes an ancient macro hack that leaks a macro into the global
namespace. Clean up users that made use of the convenient hack.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229337 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/STLExtras.h
include/llvm/MC/MCInstPrinter.h
include/llvm/Support/Format.h
lib/MC/MCInstPrinter.cpp
lib/Support/raw_ostream.cpp
unittests/IR/UseTest.cpp