clang API Documentation

CodeGenOptions.cpp
Go to the documentation of this file.
00001 //===--- CodeGenOptions.cpp -----------------------------------------------===//
00002 //
00003 //                     The LLVM Compiler Infrastructure
00004 //
00005 // This file is distributed under the University of Illinois Open Source
00006 // License. See LICENSE.TXT for details.
00007 //
00008 //===----------------------------------------------------------------------===//
00009 
00010 #include <string.h>
00011 #include "clang/Frontend/CodeGenOptions.h"
00012 
00013 namespace clang {
00014 
00015 CodeGenOptions::CodeGenOptions() {
00016 #define CODEGENOPT(Name, Bits, Default) Name = Default;
00017 #define ENUM_CODEGENOPT(Name, Type, Bits, Default) set##Name(Default);
00018 #include "clang/Frontend/CodeGenOptions.def"
00019 
00020   RelocationModel = "pic";
00021   memcpy(CoverageVersion, "402*", 4);
00022 }
00023 
00024 }  // end namespace clang