Home | History | Annotate | Download | only in CodeGen
      1 //===-- CGBuilder.h - Choose IRBuilder implementation  ----------*- C++ -*-===//
      2 //
      3 //                     The LLVM Compiler Infrastructure
      4 //
      5 // This file is distributed under the University of Illinois Open Source
      6 // License. See LICENSE.TXT for details.
      7 //
      8 //===----------------------------------------------------------------------===//
      9 
     10 #ifndef CLANG_CODEGEN_CGBUILDER_H
     11 #define CLANG_CODEGEN_CGBUILDER_H
     12 
     13 #include "llvm/IR/IRBuilder.h"
     14 
     15 namespace clang {
     16 namespace CodeGen {
     17 
     18 // Don't preserve names on values in an optimized build.
     19 #ifdef NDEBUG
     20 typedef llvm::IRBuilder<false> CGBuilderTy;
     21 #else
     22 typedef llvm::IRBuilder<> CGBuilderTy;
     23 #endif
     24 
     25 }  // end namespace CodeGen
     26 }  // end namespace clang
     27 
     28 #endif
     29