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)
commitaf09f22c4b70efc342ff2ecc6d5f9148837df42b
tree176287d129d0b7365111174afa2cf44c885b97a1
parent673476684ee1eb0c58cf51a69ea2eb823132f631
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.

llvm-svn: 229337
llvm/include/llvm/ADT/STLExtras.h
llvm/include/llvm/MC/MCInstPrinter.h
llvm/include/llvm/Support/Format.h
llvm/lib/MC/MCInstPrinter.cpp
llvm/lib/Support/raw_ostream.cpp
llvm/unittests/IR/UseTest.cpp