X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=tools%2Fllvm-config%2Fllvm-config.cpp;h=8bf2680d3918b32ef457396d19853041c6eda7fd;hp=040d11103330b032deca4c6d3ae1d3b7c223bf6c;hb=7ba0c20d4c1bedf096f5b5e2927226056c101e11;hpb=010a40c0800ad8e3ebc13a988cfb3fd959079f91 diff --git a/tools/llvm-config/llvm-config.cpp b/tools/llvm-config/llvm-config.cpp index 040d1110333..8bf2680d391 100644 --- a/tools/llvm-config/llvm-config.cpp +++ b/tools/llvm-config/llvm-config.cpp @@ -20,6 +20,7 @@ #include "llvm/ADT/STLExtras.h" #include "llvm/ADT/StringMap.h" #include "llvm/ADT/StringRef.h" +#include "llvm/ADT/Triple.h" #include "llvm/ADT/Twine.h" #include "llvm/Config/config.h" #include "llvm/Config/llvm-config.h" @@ -90,9 +91,9 @@ static void VisitComponent(StringRef Name, /// are required to link the given components. /// \param IncludeNonInstalled - Whether non-installed components should be /// reported. -void ComputeLibsForComponents(const std::vector &Components, - std::vector &RequiredLibs, - bool IncludeNonInstalled) { +static void ComputeLibsForComponents(const std::vector &Components, + std::vector &RequiredLibs, + bool IncludeNonInstalled) { std::set VisitedComponents; // Build a map of component names to information. @@ -125,7 +126,7 @@ void ComputeLibsForComponents(const std::vector &Components, /* *** */ -void usage() { +static void usage() { errs() << "\ usage: llvm-config