Computer Laboratory

get-triple.cpp File Reference

Detailed Description

Retrieve the host system's default LLVM triple.

Definition in file get-triple.cpp.

#include <llvm/Support/Host.h>
#include <llvm/Support/raw_ostream.h>
+ Include dependency graph for get-triple.cpp:

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
 

Function Documentation

int main ( int  argc,
char *  argv[] 
)

Definition at line 36 of file get-triple.cpp.

36  {
37  llvm::outs() << llvm::sys::getDefaultTargetTriple() << "\n";
38  return 0;
39 }