mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-29 22:46:07 +00:00

in CGObjCGNU.cpp and once in CGObjCEtoile.cpp. Moved its definition to CGObjC.cpp. This resolves a build error in Xcode, and also cleans things up. llvm-svn: 49429
28 lines
919 B
C++
28 lines
919 B
C++
//===---- CGBuiltin.cpp - Emit LLVM Code for builtins ---------------------===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This contains code to emit Objective-C code as LLVM code.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "CGObjCRuntime.h"
|
|
#include "CodeGenFunction.h"
|
|
#include "CodeGenModule.h"
|
|
#include "clang/AST/Expr.h"
|
|
#include "llvm/Constant.h"
|
|
using namespace clang;
|
|
using namespace CodeGen;
|
|
|
|
llvm::Value *CodeGenFunction::EmitObjCStringLiteral(const ObjCStringLiteral *E){
|
|
std::string S(E->getString()->getStrData(), E->getString()->getByteLength());
|
|
return CGM.GetAddrOfConstantCFString(S);
|
|
}
|
|
|
|
CGObjCRuntime::~CGObjCRuntime() {}
|