Skip to content

Commit 279ee64

Browse files
committed
fixup! Resolve s-barannikov's comments in CGBuiltin.h
1 parent 7097d34 commit 279ee64

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

clang/lib/CodeGen/CGBuiltin.h

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- CGBuiltin.h - LLVM CodeGen wrappers for llvm::Value* ------*- C++ -*-===//
1+
//===------ CGBuiltin.h - Emit LLVM Code for builtins ---------------------===//
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.
@@ -11,13 +11,18 @@
1111

1212
#include "CodeGenFunction.h"
1313

14-
using namespace clang;
15-
using namespace CodeGen;
16-
using namespace llvm;
14+
using llvm::Value;
15+
using llvm::Function;
16+
using llvm::AtomicOrdering;
17+
using clang::SmallVector;
18+
using clang::CallExpr;
19+
using clang::QualType;
20+
using clang::CodeGen::Address;
21+
using clang::CodeGen::CodeGenFunction;
1722

1823
// Many of MSVC builtins are on x64, ARM and AArch64; to avoid repeating code,
1924
// we handle them here.
20-
enum class CodeGenFunction::MSVCIntrin {
25+
enum class clang::CodeGen::CodeGenFunction::MSVCIntrin {
2126
_BitScanForward,
2227
_BitScanReverse,
2328
_InterlockedAnd,
@@ -64,10 +69,10 @@ enum class CodeGenFunction::MSVCIntrin {
6469
// matching the argument type. It is assumed that only the first argument is
6570
// overloaded.
6671
template <unsigned N>
67-
static Value *emitBuiltinWithOneOverloadedType(CodeGenFunction &CGF,
68-
const CallExpr *E,
69-
unsigned IntrinsicID,
70-
llvm::StringRef Name = "") {
72+
Value *emitBuiltinWithOneOverloadedType(CodeGenFunction &CGF,
73+
const CallExpr *E,
74+
unsigned IntrinsicID,
75+
llvm::StringRef Name = "") {
7176
static_assert(N, "expect non-empty argument");
7277
SmallVector<Value *, N> Args;
7378
for (unsigned I = 0; I < N; ++I)

0 commit comments

Comments
 (0)