File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1- // ===--- Interpreter.h - Incremental Compiation and Execution ---*- C++ -* -===//
1+ // ===------------ Value.cpp - Definition of interpreter value ------------ -===//
22//
33// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44// See https://llvm.org/LICENSE.txt for license information.
2222#include < cstdint>
2323#include < utility>
2424
25- using namespace clang ;
26-
2725namespace {
2826
2927// This is internal buffer maintained by Value, used to hold temporaries.
@@ -61,7 +59,7 @@ class ValueStorage {
6159 void Release () {
6260 assert (RefCnt > 0 && " Can't release if reference count is already zero" );
6361 if (--RefCnt == 0 ) {
64- // We hace a non-trivial dtor.
62+ // We have a non-trivial dtor.
6563 if (Dtor && IsAlive ()) {
6664 assert (Elements && " We at least should have 1 element in Value" );
6765 size_t Stride = AllocSize / Elements;
@@ -97,6 +95,8 @@ class ValueStorage {
9795};
9896} // namespace
9997
98+ namespace clang {
99+
100100static Value::Kind ConvertQualTypeToKind (const ASTContext &Ctx, QualType QT) {
101101 if (Ctx.hasSameType (QT, Ctx.VoidTy ))
102102 return Value::K_Void;
@@ -265,3 +265,5 @@ void Value::print(llvm::raw_ostream &Out) const {
265265 assert (OpaqueType != nullptr && " Can't print default Value" );
266266 Out << " Not implement yet.\n " ;
267267}
268+
269+ } // namespace clang
You can’t perform that action at this time.
0 commit comments