CGBuilder.h 717 B

12345678910111213141516171819202122232425262728
  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. #ifndef CLANG_CODEGEN_CGBUILDER_H
  10. #define CLANG_CODEGEN_CGBUILDER_H
  11. #include "llvm/Support/IRBuilder.h"
  12. namespace clang {
  13. namespace CodeGen {
  14. // Don't preserve names on values in an optimized build.
  15. #ifdef NDEBUG
  16. typedef llvm::IRBuilder<false> CGBuilderTy;
  17. #else
  18. typedef llvm::IRBuilder<> CGBuilderTy;
  19. #endif
  20. } // end namespace CodeGen
  21. } // end namespace clang
  22. #endif